goauthentik / authentik

The authentication glue you need.
https://goauthentik.io
Other
12.95k stars 865 forks source link

How to set custom user attributes automatically from enrollment form? #7879

Open marekhotshot opened 9 months ago

marekhotshot commented 9 months ago

Describe your question/ We need to set custom attributes "first_name" and "last_name" for all users. This was missing by default so we had to create these attributes. (one of our applications (AHA!) that we want to authenticate with requires full name).

If we create user manually or add these attributes manually to existing user in Authentik, it will authenticate correctly. Problem is only for newly created users that we invite and register through registration form.

Screenshots image image image image image image With this setup user in AHA! was created with first_name: default and last_name: default.

Basically we need to somehow get these properties set from registration form automatically to be in this place: (on the image bellow it was added manually) image

Can you please advise how to achieve this?

Version and Deployment:

marekhotshot commented 9 months ago

issue was in this part: image

correct format was:

attributes.first_name attributes.last_name

then custom attributes were written to user...