dnn.azureadb2cprovider icon indicating copy to clipboard operation
dnn.azureadb2cprovider copied to clipboard

IdentitySource user profile property not working after converting a user to superuser

Open davidjrh opened this issue 3 years ago • 0 comments

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.

davidjrh avatar Feb 28 '21 19:02 davidjrh