zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

Map/Migrate from Google user to SSO SAML? #439

Open dfduarte78 opened 7 months ago

dfduarte78 commented 7 months ago

I have a small server where users were created from Google login but now we are using M365 and when the same users (same email) login using SSO NextCloud creates a new user. Is it possible to map or migrate the users so they don't have to "start over"?

Exemple: old users: Some Name name@domain.com (NC id: google-randomnumbers) SSO users: "Some Name" name@domain.com (NC id: name@domain.com)

zorn-v commented 7 months ago

You can add mapping in oc_sociallogin_connect table.

uid identifier
name@domain.com google-randomnumbers