web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Power Pages not overwr...
Power Pages
Answered

Power Pages not overwriting fields with returned claims

(1) ShareShare
ReportReport
Posted on by 27
Hello,
 
I have a requirement where business create the users (contact) in the Dataverse and a custom invitation email gets trigger.
 
When a user signup using B2C, it correctly gets map to the existing user in the dataverse.
 
I have the following RegistrationClaimsMapping in site settings -
 
firstname=given_name,nickname=name,lastname=family_name
 
But Power Pages somehow do not update the firstname and lastname fields. It only updates the nickname.
 
If I do something like -
 
firstname=name,nickname=name,lastname=name
 
It updates the values in all three fields correctly with same value.
 
 
I have verified that b2c is returning claims with correct names.
Categories:
I have the same question (1)
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,384 Most Valuable Professional on at
    Hi, have you enabled JWT in the B2C for testing purposes? and then can you check if the given name / family name are returning in the Token?
     
    sometimes the family name is called surname, but I haven't used B2C in a while now
     
     
    I also like to set the Site Setting LoginClaimsMapping with usually the same option as the Registration one
  • power_user_420 Profile Picture
    27 on at
    Hi Oliver,
     
    Yes, I checked using jwt.ms, the claims are there with the same name I am using.
     
    I have also checked using the devtools, b2c is returning the claims to portal.
     
    I tried setting LoginClaimsMapping also, same issue, only nickname is populating. Also, I don't want to update the fields every time user login. It should only overwrite the first time, and then user can change profile from portal.
  • Verified answer
    power_user_420 Profile Picture
    27 on at
    Finally found a solution.
     
    Power Pages (.NET) is renaming some default claims internally to complete schema URL like from given_name to http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
     
    The below setting worked for me - 
     
    firstname=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname,lastname=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname,middlename=name
     
    The name claim works because it doesn't renamed by pages.
     
    The poor documentation keeps making my experience with Power Pages worse and worse.
     
    References - 
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 63 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 25 Super User 2025 Season 2

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 16 Most Valuable Professional

Last 30 days Overall leaderboard