# System APIs may not be used:

**URL:** <https://community.auth0.com/t/system-apis-may-not-be-used/63648>\
**Category:** Get Help\
**Created:** [June 1, 2021, 11:23am UTC](https://community.auth0.com/t/system-apis-may-not-be-used/63648 "2021-06-01T11:23:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.david.walker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott.david.walker/32/13510_2.png) [@scott.david.walker](https://community.auth0.com/u/scott.david.walker)\
**Post date:** [June 1, 2021, 11:23am UTC](https://community.auth0.com/t/system-apis-may-not-be-used/63648/1 "2021-06-01T11:23:59Z")

</div>

Attempting to add a permission to a role and I’m getting this error:  
“System APIs may not be used:”

Why am I not allowed to use the system api for this when I can use it for everything else?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [June 2, 2021, 12:39pm UTC](https://community.auth0.com/t/system-apis-may-not-be-used/63648/3 "2021-06-02T12:39:23Z")

</div>

Hi @scott.david.walker,

Welcome to the Community!

Are you using the Management API’s [POST](https://auth0.com/docs/api/management/v2#!/Roles/post_role_permission_assignment)[/api/v2/roles/{id}/permissions](https://auth0.com/docs/api/management/v2#!/Roles/post_role_permission_assignment) endpoint to add permissions to the role?

Would you mind sharing what your request looks like (removing any sensitive info) so that I can recreate the error? Thank you!

---

<div class="post-metadata">

**Author:** ![scott.david.walker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott.david.walker/32/13510_2.png) [@scott.david.walker](https://community.auth0.com/u/scott.david.walker)\
**Post date:** [June 2, 2021, 12:51pm UTC](https://community.auth0.com/t/system-apis-may-not-be-used/63648/4 "2021-06-02T12:51:04Z")

</div>

Hi Stephanie,  
Thanks for responding.

I am using that api. The body of my message is:

```
{

```

“permissions”: [  
{  
“resource\_server\_identifier”: “my api identifier”,  
“permission\_name”: “Aperm”  
}  
]  
}

and the error message:

```
{
"statusCode": 400,
"error": "Bad Request",
"message": "System APIs may not be used: My Api Identifier",
"errorCode": "operation_not_supported"

```

}

Thanks

Scott

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [June 2, 2021, 1:04pm UTC](https://community.auth0.com/t/system-apis-may-not-be-used/63648/5 "2021-06-02T13:04:14Z")

</div>

Thank you for the additional info, @scott.david.walker. For the API Identifier, are you using the identifier for a custom API or the Management API (`https://your-domain/api/v2`)? You can only assign permissions to a role that belongs to a custom API because the Management API is not intended for direct use in the context of an end user.

---

<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:** [June 17, 2021, 1:04pm UTC](https://community.auth0.com/t/system-apis-may-not-be-used/63648/6 "2021-06-17T13:04:42Z")

</div>

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