# Only include specific claims in UserInfo (OIDC Compliant Flow)

**URL:** <https://community.auth0.com/t/only-include-specific-claims-in-userinfo-oidc-compliant-flow/9260>\
**Category:** Get Help\
**Tags:** oidc-conformant, custom-claims\
**Created:** [January 22, 2018, 9:45pm UTC](https://community.auth0.com/t/only-include-specific-claims-in-userinfo-oidc-compliant-flow/9260 "2018-01-22T21:45:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_EF\_Power](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Martin\_EF\_Power](https://community.auth0.com/u/Martin_EF_Power)\
**Post date:** [January 22, 2018, 9:45pm UTC](https://community.auth0.com/t/only-include-specific-claims-in-userinfo-oidc-compliant-flow/9260/1 "2018-01-22T21:45:07Z")

</div>

When adopting the OIDC compliant flows in Auth0, `app_metadata` and `user_metadata` are not included in the `userinfo` endpoint any longer. To include custom claims in the `userinfo` endpoint, we now need to add namespaced claims to the `id_token` using a rule.

`context.idToken[namespace + ‘example’] = user.user_metadata.example;`

My question is, is it possible to include custom claims in the `userinfo` endpoint and not include them in the `id_token`?

As far as i understand, we have to include any custom claims in the `id_token` for them to show up in the `userinfo` endpoint. If so, then why use the `userinfo` at all?

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 6:05pm UTC](https://community.auth0.com/t/only-include-specific-claims-in-userinfo-oidc-compliant-flow/9260/2 "2018-12-14T18:05:51Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 6:05pm UTC](https://community.auth0.com/t/only-include-specific-claims-in-userinfo-oidc-compliant-flow/9260/3 "2018-12-14T18:05:53Z")

</div>


