# M2M sub format is not compatible using @ character

**URL:** <https://community.auth0.com/t/m2m-sub-format-is-not-compatible-using-character/87773>\
**Category:** Get Help\
**Created:** [July 28, 2022, 12:30am UTC](https://community.auth0.com/t/m2m-sub-format-is-not-compatible-using-character/87773 "2022-07-28T00:30:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftballguy45](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ftballguy45/32/33736_2.png) [@ftballguy45](https://community.auth0.com/u/ftballguy45)\
**Post date:** [July 28, 2022, 12:30am UTC](https://community.auth0.com/t/m2m-sub-format-is-not-compatible-using-character/87773/1 "2022-07-28T00:30:43Z")

</div>

Our system does not allow for special characters such as ‘@’, which the M2M client credential appears to be using to append client is with ‘@clients’. How can we work around this?

---

<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:** [August 2, 2022, 11:47pm UTC](https://community.auth0.com/t/m2m-sub-format-is-not-compatible-using-character/87773/4 "2022-08-02T23:47:42Z")

</div>

Hello @ftballguy45 welcome to the community!

> [@ftballguy45](#):
>
> How can we work around this?

Unfortunately, there isn’t any way to remove the `@clients` from the `sub` value - However, if you can use the `azp` claim instead this could be a possible work around.

For reference:

> If present, it MUST contain the OAuth 2.0 Client ID of this party. This Claim is only needed when the ID Token has a single audience value and that audience is different than the authorized party. It MAY be included even when the authorized party is the same as the sole audience. The azp value is a case sensitive string containing a StringOrURI value.

---

<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:** [August 17, 2022, 11:48pm UTC](https://community.auth0.com/t/m2m-sub-format-is-not-compatible-using-character/87773/5 "2022-08-17T23:48:12Z")

</div>

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