# M2M scope is not updating after changing

**URL:** <https://community.auth0.com/t/m2m-scope-is-not-updating-after-changing/108629>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [June 6, 2023, 8:11am UTC](https://community.auth0.com/t/m2m-scope-is-not-updating-after-changing/108629 "2023-06-06T08:11:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nolafs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nolafs/32/47696_2.png) [@nolafs](https://community.auth0.com/u/nolafs)\
**Post date:** [June 6, 2023, 8:11am UTC](https://community.auth0.com/t/m2m-scope-is-not-updating-after-changing/108629/1 "2023-06-06T08:11:14Z")

</div>

Hi,

I have nestjs app that request an access token. The token seems not to update it scopes when changing it.

I have added update:profile and delete:users, both of those scopes to not appear when requesting a access token.

 ![request token](https://global.discourse-cdn.com/auth0/original/3X/3/6/3669cb54cedb4c669af7f0e3cd7895f8f7de4136.png)  
 ![API Scope](https://global.discourse-cdn.com/auth0/original/3X/8/4/84ded8728640f0a4aa164c8cb11eb3b47108aa5e.png)

When testing the api in Auth0 dashboard, the token looks correct but what ever I get in my nestjs app is wrong or old.

Using postman does work and it returns the correct scope when calling the endpoint. Also using the Auth0 Management API audience works perfectly fine. Why can’t I use my custom api??

Any ideas why that is?

Cheers  
Olaf

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 21, 2023, 12:53pm UTC](https://community.auth0.com/t/m2m-scope-is-not-updating-after-changing/108629/3 "2023-06-21T12:53:50Z")

</div>

Hi @nolafs,

Welcome to the Auth0 Community!

Can you please share the name of your tenant and custom API in a DM? I’ll take a look and see if I can see what is going on.

---

<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:** [July 20, 2023, 3:34pm UTC](https://community.auth0.com/t/m2m-scope-is-not-updating-after-changing/108629/4 "2023-07-20T15:34:33Z")

</div>

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