How may I access the value of the`sub` claim in the ID Token from admin portal?

All ID Tokens include the sub claim, which is a unique identifier for the user, my question:

  • How may I access the value of the sub claim from within the Okta dev portal?
  • How does the value of the sub claim get generated? Maybe I can user some fields to generate it myself?

I cannot find any unique values under user Profiles…

Please help!

It appears the sub claim for id tokens in Okta are always mapped to the unique identifier of the user object, you can do a GET on API against a user to find that:

{
“id”: “value for sub”,
“status”: “ACTIVE”,
“created”: “2019-06-07T07:42:41.000Z”,
“activated”: “2019-06-07T07:42:42.000Z”,
“statusChanged”: “2019-06-07T07:42:42.000Z”,
“lastLogin”: “2019-06-07T07:42:42.000Z”,
“lastUpdated”: “2019-06-07T08:46:13.000Z”,
“passwordChanged”: null,
“profile”: {
“firstName”: “User”,
“lastName”: “Test”,
“mobilePhone”: null,
“secondEmail”: null,
“login”: "user@test.com",
“email”: "user@test.com"
},

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.