# Name claim in id Token

**URL:** <https://devforum.okta.com/t/name-claim-in-id-token/3140>\
**Category:** OAuth/OIDC\
**Created:** [October 18, 2018, 9:44pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140 "2018-10-18T21:44:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maharatha](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@maharatha](https://devforum.okta.com/u/maharatha)\
**Post date:** [October 18, 2018, 9:44pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/1 "2018-10-18T21:44:38Z")

</div>

How do I pass the name claim through id token. It’s not allowing me to add the claim as it says this claim already exists. I am using OpenID.

How do I pass the name claim in Id Token, I am able to pass custom claim though.

---

<div class="post-metadata">

**Author:** ![micah.silverman](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/micah.silverman/32/1239_2.png) [@micah.silverman](https://devforum.okta.com/u/micah.silverman)\
**Post date:** [October 18, 2018, 9:50pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/2 "2018-10-18T21:50:58Z")

</div>

The name claim is already included in the id token by default.

---

<div class="post-metadata">

**Author:** ![maharatha](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@maharatha](https://devforum.okta.com/u/maharatha)\
**Post date:** [October 18, 2018, 10:10pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/3 "2018-10-18T22:10:56Z")

</div>

> [@micah.silverman](#):
>
> token

I don’t see those, below is what I am getting  
sub": xxxxxx  
“ver”: 1,  
“iss”: “xxxxx”,  
“aud”: “xxx”  
“iat”: 1539899345,  
“exp”: 1539902945,  
“jti”: “xxxxxx”,  
“amr”: [  
“pwd”  
],  
“idp”: “xxxxxxx”,  
“nonce”: “nonce”,  
“auth\_time”: 1000,  
“at\_hash”: “preview\_at\_hash”,  
“unique\_name”: “xxxxx”,  
“fullname”: “xxxxxx”

Last 2 are my custom claims

---

<div class="post-metadata">

**Author:** ![maharatha](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@maharatha](https://devforum.okta.com/u/maharatha)\
**Post date:** [October 18, 2018, 10:13pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/4 "2018-10-18T22:13:08Z")

</div>

I also tried in the token preview and the results are same

---

<div class="post-metadata">

**Author:** ![maharatha](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@maharatha](https://devforum.okta.com/u/maharatha)\
**Post date:** [October 20, 2018, 4:40am UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/5 "2018-10-20T04:40:43Z")

</div>

Can you put some insight into it ? I am kind of struggling with the claims now

---

<div class="post-metadata">

**Author:** ![jmelberg](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/jmelberg/32/154_2.png) [@jmelberg](https://devforum.okta.com/u/jmelberg)\
**Post date:** [October 22, 2018, 8:42pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/6 "2018-10-22T20:42:12Z")

</div>

@maharatha,

You can request the `profile` scope to populate the `id_token` with the end-user’s information. This `scope` will include the following claims:

- `name`
- `family_name`
- `given_name`

> See [scope values](https://developer.okta.com/docs/api/resources/oidc#scopes) for a list of all default profile claims.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 12, 2024, 11:52pm UTC](https://devforum.okta.com/t/name-claim-in-id-token/3140/7 "2024-01-12T23:52:57Z")

</div>

Closed on January 12, 2024, 11:52pm UTC

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