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

Name collision when synchronizing sub groups from Keycloak #129

Open
corvus-ch opened this issue Sep 16, 2021 · 0 comments
Open

Name collision when synchronizing sub groups from Keycloak #129

corvus-ch opened this issue Sep 16, 2021 · 0 comments

Comments

@corvus-ch
Copy link

Keycloak does not ensure uniqe group names for sub groups.
When synchronized to OpenShift the behaviour is random.

Preconditions

Given the following group strucutre in Keyckloak:
"""
* group-a
** sub-group
* group-b
** sub-group
"""
And a user named "user-a" asigned to group "group-a/sub-group"
And a user named "user-b" asigned to group "group-b/sub-group"
When the groups are sync with the option "scope" set to "sub"

Observation

Then there are the following groups:
"""
* group-a
* group-b
* sub-group
"""
And the user list of "sub-group" contains "user-a"
Or the user list of "sub-group" contains "user-b"

Note that the bahaviour is random. Depending on unknown conditions, users are synced from either "group-a/sub-group" or "group-b/sub-group".

Expectations

Then there are the following groups:
"""
* group-a
* group-b
* group-a-sub-group
* group-b-sub-group
"""
And the user list of "group-a-sub-group" contains "user-a"
And the user list of "group-b-sub-group" contains "user-b"

In the above - got used as a separator to prepend the parents group name. I suggest to have this configurable.

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

Successfully merging a pull request may close this issue.

1 participant