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

Changing UID breaks group associations #15

Open
agrieco opened this issue Aug 15, 2021 · 1 comment
Open

Changing UID breaks group associations #15

agrieco opened this issue Aug 15, 2021 · 1 comment

Comments

@agrieco
Copy link

agrieco commented Aug 15, 2021

If you change the UID of an existing user that is associated with groups already, the appropriate tables are no updated to ensure the new UID is a member of all the groups.

Steps to reproduce:

  1. create a user
  2. associate the user with a group (e.g. GROUPA)
  3. change the user UID

At this point, the user will no longer be a member of GROUPA.

@sonicnkt
Copy link
Owner

Hi thanks for reporting and yes this is to be expected atm because they are joined in the db using that id.
A better solution would be to join groups and user accounts by an independent ID that isnt exposed to the enduser.
Not a big change but i will have to put together some special migration code to handel existing databases.

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