We have customers who have existing user accounts, and they have now decided to enable Microsoft Authentication on their tenant.
What is the recommended procedure for converting their user accounts to be associated with an Azure A/D login with the same email address?
Note: If the user clicks "sign in with Microsoft", they receive an error similar to "cannot create user account, email already exists". This makes sense - but is clearly not desirable.
Thanks,
1 Answer(s)
-
1
Hi,
You can try inserting records to AbpUserLogins table.
LoginProvider
field should have the value "Microsoft" andProviderKey
field should have the id field of the user on the external system.You can also try Microsoft login with a non-existing user and see how a record is inserted to AbpUserLogins table.