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

Prevent to change organization related user attributes for federated users #29080

Open
martin-kanis opened this issue Apr 25, 2024 · 2 comments

Comments

@martin-kanis
Copy link
Contributor

When a user federated from LDAP or a custom user federation become an organization member, we need a way to detect or prevent to change user attribute(s) related to the organization outside the Keycloak.

@pedroigor
Copy link
Contributor

AFAIK, for LDAP that would require creating a mapper for those attributes related to the organization. And if the user is being managed through the user profile provider we are already running validations. Are you considering introducing constraints on which attributes can be mapped from an LDAP mapper?

@pedroigor
Copy link
Contributor

pedroigor commented Apr 25, 2024

@martin-kanis Btw, perhaps related to what you are proposing around LDAP:

The #26415 does not prevent you entirely from setting any attribute but we could perhaps introduce validations (even if specific to the mapper configuration) to prevent touching such attributes.

Another option is rely on user-specific events to make sure such attributes don't change if not managed through the organization provider.

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