# How to issue Email claim in ID token (w/o "email" scope)?

**URL:** <https://community.auth0.com/t/how-to-issue-email-claim-in-id-token-w-o-email-scope/98078>\
**Category:** Get Help\
**Created:** [January 12, 2023, 5:18pm UTC](https://community.auth0.com/t/how-to-issue-email-claim-in-id-token-w-o-email-scope/98078 "2023-01-12T17:18:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samwongacn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/samwongacn/32/42383_2.png) [@samwongacn](https://community.auth0.com/u/samwongacn)\
**Post date:** [January 12, 2023, 5:18pm UTC](https://community.auth0.com/t/how-to-issue-email-claim-in-id-token-w-o-email-scope/98078/1 "2023-01-12T17:18:37Z")

</div>

I am trying to integrate Auth0 with SharePoint Subscription Edition using OIDC.

SP SE can integrate with IdPs that supports OIDC. Once configured, SP SE will initiate an authorization request to the authorization endpoint with the scope “openid” only to request for an ID token.

The challenge I am facing is Auth0 does not issue the email claim in the ID token unless “email” is specified in the scope. i.e. scope=“openid email”. I cannot change how SharePoint issue the request to include email scope. I cannot add the email claim as custom claim because SP would not recognize “[https://namespace/email](https://namespace/email)” as an identity claim.

Any trick to issue the email claim in ID token without specifying email scope?

BTW: I know I probably could use WS-Fed to integrate with SP. Though I have a requirement to use only OIDC. Integrating SP SE with other providers using OIDC was a breeze, not so with Auth0. The first roadblock I came across was Auth0 OIDC Discovery endpoint does not publish “end\_session\_endpoint” and this is required by SP for auto-config. I know it is not required by OIDC spec but SP requires it and all other IdPs I used publishes it for the app registration. I ended up having to manually configure the token issuer in SP with PowerShell which is no joy because I have to update the config when the cert gets rotated or users will not be able to login.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 17, 2023, 4:44pm UTC](https://community.auth0.com/t/how-to-issue-email-claim-in-id-token-w-o-email-scope/98078/4 "2023-01-17T16:44:23Z")

</div>

Hi there @samwongacn welcome to the community!

> [@samwongacn](#):
>
> Any trick to issue the email claim in ID token without specifying email scope?

As far as I’m aware, there’s no way to get an `email` claim without specifying the `email` scope in the request - Unfortunately, omitting the scope but attempting to add the claim manually is not allowed given the fact that email is a standard protected claim.

It’s curious that SharePoint doesn’t support including the email scope - Are you able to point me in the direction of the specific documentation regarding this?

Let me know!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 21, 2023, 6:01pm UTC](https://community.auth0.com/t/how-to-issue-email-claim-in-id-token-w-o-email-scope/98078/5 "2023-02-21T18:01:05Z")

</div>

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