# Modify machine to machine scopes

**URL:** <https://community.auth0.com/t/modify-machine-to-machine-scopes/19103>\
**Category:** Get Help\
**Created:** [December 14, 2018, 10:25pm UTC](https://community.auth0.com/t/modify-machine-to-machine-scopes/19103 "2018-12-14T22:25:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe.cleland](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joe.cleland/32/12921_2.png) [@joe.cleland](https://community.auth0.com/u/joe.cleland)\
**Post date:** [December 14, 2018, 10:25pm UTC](https://community.auth0.com/t/modify-machine-to-machine-scopes/19103/1 "2018-12-14T22:25:45Z")

</div>

Hi all, I’m new to Auth0 and to this forum so I apologize in advance if I ask any naive questions.

Is there a way to modify the scopes returned in an access token? I tried using rules but rules seem to only apply to user logins.

I want to add additional scopes based on the pesence of a scope requested.

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [December 15, 2018, 7:27pm UTC](https://community.auth0.com/t/modify-machine-to-machine-scopes/19103/2 "2018-12-15T19:27:08Z")

</div>

Hi Joe. Rules don’t execute on a client-credentials exchange (machine-to-machine flows), but you can [use a hook](https://auth0.com/docs/api-auth/tutorials/client-credentials/customize-with-hooks) to accomplish the same purpose.

---

<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:** [August 28, 2019, 2:47pm UTC](https://community.auth0.com/t/modify-machine-to-machine-scopes/19103/3 "2019-08-28T14:47:42Z")

</div>

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