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

Announcements

News and Announcements icon
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,482 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 38

#2
Valantis Profile Picture

Valantis 36

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard