Base solution for your next web application
Open Closed

Convert a user account to an "externally authenticated" one #11560


User avatar
0
hra created

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)
  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi,

    You can try inserting records to AbpUserLogins table. LoginProvider field should have the value "Microsoft" and ProviderKey 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.