-
Notifications
You must be signed in to change notification settings - Fork 184
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
user autoprovsioning lacking support for renames #3866
Comments
What is the status on this or are there any workarounds one could use? I tried setting the |
Any updates on this? Are there still plans to fix the bug? |
@nicholas-wilson-au are you aware of it? |
I am using PROXY_USER_OIDC_CLAIM: "sub" successfully. Not sure if this issue still exists in its entirety. |
@nicholas-wilson-au @dj4oC You setting has no effect. See #8635 |
Yes. That should be it. But please be aware, that that configuration will result in the usernames of the autoprovisioned users in ocis will be populated with the value of the "sub" claim. I.e. they'll be more or less looking like randon string or UUIDs (depending on your IDP) |
Thanks for the clarification!
Does this have any (negative) consequences that I am not aware of? AIso, is it possible to migrate form the default configuration to a custom one, and if so, what do I have to consider in this process? |
I think it will have at least and impact when creating shares. E.g. when searching for people to share with we're matching the search term against username, displayname and email. It's probably not a not a big issue, but you might have unexpected results poping up in that search page.
A manual migration should be possible but might be cumbersome. Basically you would have to update the username for all users that have been provisioned already and change it from the old claim's value to the value of the |
Maybe a setting that changes this behavior would make sense? Also one last question: |
In latest master yes. (Was added with #9166) |
Describe the bug
Currently the auto provisioning feature in the ocis proxy relies on the confgured
PROXY_USER_OIDC_CLAIM
(email
by default) to be stable. If a user gets renamed (or changes its mail address) in the external IDP the proxy would provision an new user with a new user id for that. Resulting in that user to have access to files and shares anymore. (Note: this is nothing new it behaves similar to what the auto provision via accounts service did in this regard)Ideally the auto provisioning feature would keep track of the iss/sub claims of the users and store that together with the user (the MS graph
identities
property seems like a good fit for such data). As the combination of theiss
andsub
claims is supposed to be stable the auto provisioning feature could use that data to detect renames and apply them accordingly.The text was updated successfully, but these errors were encountered: