Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine-grained authorisation for user account attributes #143

Open
NicolasLiampotis opened this issue Dec 1, 2021 · 6 comments
Open

Fine-grained authorisation for user account attributes #143

NicolasLiampotis opened this issue Dec 1, 2021 · 6 comments
Assignees

Comments

@NicolasLiampotis
Copy link

Currently Keycloak supports the manage-account role to control whether the user can update their name and email information (self-service). We want to introduce additional roles to limit access to name and email separately, e.g. manage-account-name and manage-account-email.

This is useful if for a given Keycloak installation we don't want users to change the name released by their Identity Provider but at the same time allow them to change their email which be trusted following the email verification process.

@cgeorgilakis
Copy link

Manage account do extra things like giving access to being able to link Identity Provider. We can not simply replace this role.
I believe better choice is to keep this role and introduce manage-account-name and manage-account-email that will give access to a user to manage his email and name. This roles will be added to default roles in order to have same behiaviour as Keycloak vanilla.

@cgeorgilakis
Copy link

Updating multivalue attributes must be taken into account

@cgeorgilakis
Copy link

Another person have opened a github discussion for not being able to disable email change.

Moreover, a question in Keycloak forum exists without sufficient response. They propose to make 'email as username' equals to true and disable changing username. However, I believe that this will also blocks Idp email change and we want to set 'email as username' to false together with 'Duplicate email's in order to support some email to different users.
Moreover, a PR for requiring email to be verified before changing exists.

@cgeorgilakis
Copy link

We could also use User profile, which is Technology preview that give us the ability to disable user from editing email from account console. Need to be tested.

@cgeorgilakis
Copy link

Unfortunately, we can not configure permissions in main attributes (fe email) like in other attributes.

@cgeorgilakis
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants