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

Affiliation between users and groups synced from AzureAD to keycloak is lost #90

Closed
iFengWang opened this issue Sep 1, 2023 · 7 comments

Comments

@iFengWang
Copy link

Why when I synchronize users and groups in AzureAD to my keycloak18.0.0 through kc-18-b1, the users and groups are synchronized successfully, but I find that the affiliation between users and groups, and between groups Relationships are all lost. Has anyone else encountered this problem? Please advise! Thank you very much! !

@Captain-P-Goldfish
Copy link
Owner

Sorry it seems that I have missed this ticket.
Did you solve the problem?
The OpenSource version is legacy by the way and no longer supported. But I have a slight idea what happened. Did this happen in the synchronization process between Azure and keycloak?

@fgrtl
Copy link

fgrtl commented Jan 23, 2024

I have encountered the same issue in the synchronization process between Entra ID and Keycloak.
Do you have any idea why this happened?
Thanks in advance!

@Captain-P-Goldfish
Copy link
Owner

Yes, I have a pretty good idea and I am currently working on this. The problem is a combination of the current patch-implementation of the SCIM-SDK and the usage of concurrent patch-updates.

The current version of the patch-implementation calls basically the get-endpoint, patches the result und calls the update-method. If a concurrent request is sent at the same time. The old-resource is read, the other patch-request succeeds and is saved in the database. The concurrent request has read the memberships of the old resource and is therefore deleting the membership that was just saved.

I am almost finished with restructuring the patch-implementation in the SCIM-SDK. If this is done I will fix it in the SCIM-for-keycloak plugin.

@fgrtl
Copy link

fgrtl commented Jan 23, 2024

Sorry to ask, but will these changes also be published in the open source project?
We are currently stuck at Keycloak 18 due to our project.
Thanks for your response! 

@Captain-P-Goldfish
Copy link
Owner

sorry, but this will not be added to the OpenSource version. I have not enough capacity anymore to support older versions too. And the github version differs a lot from the version at https://scim-for-keycloak.de so it will also not be possible to copy and paste the solution here.

@fgrtl
Copy link

fgrtl commented Jan 24, 2024

Total understandable, thanks for the answers!

@Captain-P-Goldfish
Copy link
Owner

fixed, but not released yet. Will be available in version 2.0.0

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

3 participants