I have an existing Nextcloud server for a custormer ( ~ 30users ) .
He asks me to add matrix/element app on it .
I install it ( server/client/app) and everything is OK … but users do not have same credentials.
So I install Keycloak server , create realms for Nextcloud & Element.
That works for new user, who has its account on keycloak …
But my question is : what to do with existing users on nextcloud ?
Should I export user info and create new Keycloak account ?
Is there any tool/app to make this in simple way ?
this works other way round. NC can trust some other entity - Keycloak IdP - that this entity proof the identity of some user in a right… there is no “copy” of user objects from an application to an IdP… And once the IdP authenticates the user it could act in two ways
create a new user using unique attributes provided by an IdP (which is the safest method to avoid access to existing data by wrong user)
or it could connect the user object from IdP using some attribute “mapping” to know the IdP user belongs to a existing local user. this is done by providing an IdP attribute which exactly match the user ID of Nextcloud user. the settings are very clear mentioned in the above topic.