# Adding Group To idToken

**URL:** <https://devforum.okta.com/t/adding-group-to-idtoken/16182>\
**Category:** Questions\
**Created:** [September 16, 2021, 6:19pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182 "2021-09-16T18:19:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdodev](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rdodev](https://devforum.okta.com/u/rdodev)\
**Post date:** [September 16, 2021, 6:19pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182/1 "2021-09-16T18:19:42Z")

</div>

Folks, I’m following the guide here [Add a Groups claim for the Org Authorization Server | Okta Developer](https://developer.okta.com/docs/guides/customize-tokens-groups-claim/add-groups-claim-org-as/)  
I’m trying to include any Okta-mastered user groups an user is assigned to as part of the idToken of an OIDC implicit workflow.

I have yet to be able to replicate the results in that page. My application settings are as required by the guide as are the scopes, claims, etc. to no avail. The JWT token does not contain group information at all. Interrogating the `/userinfo` endpoint with the access token doesn’t retrieve any meaningful information either.

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [September 16, 2021, 6:33pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182/2 "2021-09-16T18:33:20Z")

</div>

@rdodev Did you test in token preview after configure the custom claims?  
Is there a screenshot for the customized claim setting?

---

<div class="post-metadata">

**Author:** ![rdodev](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rdodev](https://devforum.okta.com/u/rdodev)\
**Post date:** [September 16, 2021, 6:53pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182/3 "2021-09-16T18:53:10Z")

</div>

I’m not sure what you’re asking for. I’m using [JSON Web Tokens - jwt.io](https://jwt.io/#debugger-io) to see the contents of the response `idToken` and everything looks good, except no `groups`.

---

<div class="post-metadata">

**Author:** ![rdodev](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rdodev](https://devforum.okta.com/u/rdodev)\
**Post date:** [September 16, 2021, 7:05pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182/4 "2021-09-16T19:05:35Z")

</div>

@Lijia I believe I found the issue and solution here [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/Okta-Groups-or-Attribute-Missing-from-Id-Token?language=en_US)

And here [No 'groups' scope in the console for the default Authorisation Server](https://devforum.okta.com/t/no-groups-scope-in-the-console-for-the-default-authorisation-server/5573)

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [September 16, 2021, 8:59pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182/5 "2021-09-16T20:59:36Z")

</div>

@rdodev Great. I was asking for the configuration of your claims in the auth server. I believe you just mis-configured the settings. I’ll close this topic.

---

<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:** [September 17, 2021, 8:59pm UTC](https://devforum.okta.com/t/adding-group-to-idtoken/16182/6 "2021-09-17T20:59:58Z")

</div>

Closed on September 17, 2021, 8:59pm UTC

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