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 / Pass Additional Metada...
Power Pages
Answered

Pass Additional Metadata in JWT Payload?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is it possible to pass additional metadata in the JWT payload?

I started looking here:
https://carldesouza.com/jwt-json-web-tokens-and-power-apps-portals/?utm_source=rss&utm_medium=rss&utm_campaign=jwt-json-web-tokens-and-power-apps-portals

PowerOutage_0-1659039202049.png


as you can see, there is a good amount of metadata passed in the payload, but I'd like to pass one more field.

Categories:
I have the same question (0)
  • Niktia Polyakov Microsoft Profile Picture
    Microsoft Employee on at

    Great question, we're taking a look!

     

    Do you have more context on the use-case on what you hope to do?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    In my contact table, I have a required column titled Color.  When the user logs in, I'd like to pass that field value through the claims.  Looking at the default fields returned, you'd think it's a configurable value somewhere.  companysize, balance, ...


    I'm currently testing how to do the same thing with B2C, and it appears to be reasonably straightforward. 


  • Verified answer
    rulesrchanged1 Profile Picture
    Microsoft Employee on at

    You can't add custom columns to this token. The way to get custom columns would be calling dataverse directly from your application (which is using this jwt token) and get the additional columns u require for this contact (contact id is in sub claim).

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That's the route we took for the default token.  Thank you for the info!

  • Verified answer
    Niktia Polyakov Microsoft Profile Picture
    Microsoft Employee on at

    @Anonymous  You would do claims mapping on initial Registration/SignUp flow to get that field from B2C to Portal Contact "user" record, then you can get it server-side for that same ContactID as Dileep suggested from down-steam API.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 33

#2
sannavajjala87 Profile Picture

sannavajjala87 28 Super User 2026 Season 2

#3
Fubar Profile Picture

Fubar 22 Super User 2026 Season 1

Last 30 days Overall leaderboard