How to write custom user attributes during registration #4767
Unanswered
funktionierbar
asked this question in
Q&A
Replies: 1 comment 1 reply
-
had similar issue, no need for expression policy. you need to add **attributes.**CustomAttributeName when creating new attribute to make it write to user. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everybody,
i have been wrecking my brain the whole day trying to figure this out, now i am going to ask for help:
I think the problem is simple. I want to have the user fill in certain information that is stored as a custom attribute. For Example an external mail adress, so that during password recovery the recovery link can be sent to a secondary mail, as my primary mail is behind authentik. I use invitation flows for different groups of users. My Invitation flow has these stages: Invitation, Prompt, Write, Login.
I created the custom fields in the prompt stage, validation works, the context gets updated accordingly, but the custom fields are not written to the new user.
I figured I need an expression policy for the write stage to write the prompt information to the pending_user model.
and thats were I got stuck.
Best i could muster was something like this:
It always fails with "Request has been denied. Unkown error", and the logs show nothing that tells me anything, except maybe:
Via mail I get a message like this:
Can you help me out here? How do I write to the user to be created?
Beta Was this translation helpful? Give feedback.
All reactions