# How to get a list of permissions created inside custom api?

**URL:** <https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064>\
**Category:** Get Help\
**Tags:** management-api\
**Created:** [July 13, 2021, 12:03pm UTC](https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064 "2021-07-13T12:03:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![reachsagarshah](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/reachsagarshah/32/12773_2.png) [@reachsagarshah](https://community.auth0.com/u/reachsagarshah)\
**Post date:** [July 13, 2021, 12:03pm UTC](https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064/1 "2021-07-13T12:03:20Z")

</div>

Hi there,

I’m trying to integrate auth0 management api in one of my project.

My use case is pretty simple.

**Create custom roles & permissions and assign permissions to role.**

These are the steps I followed in the development

**1. Create custom roles using management api**

- For this, I have used [management api](https://auth0.com/docs/api/management/v2#!/Roles/post_roles) which is working fine.

**2. Create permission from dashboard instead of management api**

- In management api explorer, I could not find any way to create permission.
- Then I tried to use [associate permission with role api](https://auth0.com/docs/api/management/v2#!/Roles/post_role_permission_assignment) to create permission but got this error " [System APIs may not be used:](https://community.auth0.com/t/system-apis-may-not-be-used/63648)"
- After researching quite a bit, I realised, I need to create a custom api and apply permissions to it like shown in screenshot below which I did from the dashboard.
- Still If there is any api which I can use to create permission, please let me know.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/e/cef04104110a84b556477af8b66588a575abbc93.png)

**3. Get list of permissions from custom api (Need Help Here)**

- My question is, how can I get a list of permissions created inside custom api as shown in the screenshot above. I couldn’t find any api for retrieving permissions in management api explorer.

I’m totally stuck here. Really appreciate some help here.

---

<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:** [July 13, 2021, 4:27pm UTC](https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064/2 "2021-07-13T16:27:02Z")

</div>

Hi @reachsagarshah,

Welcome to the Auth0 Community!

It sounds like you are looking for the [resource server endpoints](https://auth0.com/docs/api/management/v2?#!/Resource_Servers/get_resource_servers). _Resource server_ is the same as _API_ in this context. You can use the [  
PATCH /api/v2/resource-servers/{id}](https://auth0.com/docs/api/management/v2#!/Resource_Servers/patch_resource_servers_by_id) to update the resource server’s _scopes_. Scopes = permissions.

---

<div class="post-metadata">

**Author:** ![reachsagarshah](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/reachsagarshah/32/12773_2.png) [@reachsagarshah](https://community.auth0.com/u/reachsagarshah)\
**Post date:** [July 15, 2021, 6:29am UTC](https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064/3 "2021-07-15T06:29:24Z")

</div>

Thank you so much Dan. This is exactly what I was looking for 👍

---

<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:** [July 15, 2021, 3:55pm UTC](https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064/4 "2021-07-15T15:55:22Z")

</div>

No problem! Let me know if you have any questions about it.

---

<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 30, 2021, 3:55pm UTC](https://community.auth0.com/t/how-to-get-a-list-of-permissions-created-inside-custom-api/66064/5 "2021-07-30T15:55:58Z")

</div>

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