dnn.azureadb2cprovider
dnn.azureadb2cprovider copied to clipboard
IdentitySource user profile property not working after converting a user to superuser
After converting a user to superuser, the IdentitySource profile property is no longer returned for such user. This is caused because the profile property definitions for superusers are taken from the ProfilePropertyDefinition table with portalId=NULL.
Workaround
- Insert in the database a record copying the IdentitySource profile property from portal 0, but setting the portalId=NULL
- Update the record at UserProfile table for the user being promoted, changing the PropertyDefinitionID value to the one created by the insert above.