# Auth0 Delegated Admin Dashboard Missing Scope Read:Users

**URL:** <https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629>\
**Category:** Get Help\
**Created:** [March 19, 2020, 12:17pm UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629 "2020-03-19T12:17:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![samrobbins85](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/samrobbins85/32/19919_2.png) [@samrobbins85](https://community.auth0.com/u/samrobbins85)\
**Post date:** [March 19, 2020, 12:17pm UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/1 "2020-03-19T12:17:36Z")

</div>

I followed the guide here [Delegated Administration Extension v3 - Auth0 Docs](https://auth0.com/docs/extensions/delegated-admin/v3) but am getting Missing scope read:users instead of the dashboard.

What I have done:

- Created a single page application an called it Users Dashboard
- Given the Users Dashboard application a callback and logout URL as specified in the documentation
- I already had a database connection from my application and I have the disable signups toggle enabled
- I ensured that the Users Dashboard application only has the one database connection
- I already had a user in the database connection
- I created a role titled “Delegated Admin - User” and assigned it to the user in the database
- I then created the following rule

> ```
> function (user, context, callback) {
> if (true) {
> const namespace = 'https://MY_TENANT.eu8.webtask.io/auth0-delegated-admin';
> context.idToken[namespace] = {
> roles: (context.authorization || {}).roles
> };
> }
> callback(null, user, context);
> }
> 
> ```

I then installed the delegated admin extension, giving it the client ID of the Users dashboard I created.

Then I clicked on the extension, logged in using the user credentials in the database and got the error:  
Oh snap! An error occurred while loading the users list: Cannot perform action. Missing scope read:users

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 19, 2020, 1:09pm UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/2 "2020-03-19T13:09:59Z")

</div>

Hi @samrobbins85,

welcome to the community.

> Oh snap! An error occurred while loading the users list: Cannot perform action. Missing scope read:users

Can you post a screenshot of what the error looks like; wanting to see where exactly it occurs and what it looks like on screen.

Also, can you check if there’s any more info in the log details under `Dashboard > Logs > Search`

* * *

Just based on the error message you, I suggest to check one thing:

1. get the client id of your application named `auth0-delegated-admin`
2. go to Dashboard \> APIs \> Auth0 Management API \> Test \> copy/paste the token from there
3. go to [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants)
4. copy the token from step 2 in the upper-left hand corner
5. then enter the client id from step 1 into the client\_id field under section “Get client grants” (see screenshot below)
6. check the result if for the Auth0 Management API, it actually has the `read:users` scope. (see screenshot below)

 ![image](https://global.discourse-cdn.com/auth0/original/3X/0/0/00b3056bc42aff8cb93a1c5f6dff7f18521cd24e.png)

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

Or easier:

1. Turn the `auth0-delegated-admin` from a “Generic” into a “Regular Web App” in the settings, then…
2. …it will appear under Dashboard \> APIs \> Auth0 Management API \> Machine to Machine
3. and you can check it’s permissions from there:

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

---

<div class="post-metadata">

**Author:** ![samrobbins85](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/samrobbins85/32/19919_2.png) [@samrobbins85](https://community.auth0.com/u/samrobbins85)\
**Post date:** [March 20, 2020, 10:47am UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/3 "2020-03-20T10:47:58Z")

</div>

I tried the second option you gave but got the same error, it looks like this

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

I checked the logs and there were no failed requests

---

<div class="post-metadata">

**Author:** ![tmeumann\_ais](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tmeumann_ais/32/13728_2.png) [@tmeumann\_ais](https://community.auth0.com/u/tmeumann_ais)\
**Post date:** [May 11, 2020, 4:22am UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/4 "2020-05-11T04:22:09Z")

</div>

Did you manage to fix this? We’re hitting the same issue now.

---

<div class="post-metadata">

**Author:** ![tmeumann\_ais](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tmeumann_ais/32/13728_2.png) [@tmeumann\_ais](https://community.auth0.com/u/tmeumann_ais)\
**Post date:** [May 12, 2020, 2:05am UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/5 "2020-05-12T02:05:31Z")

</div>

Not sure what @samrobbins85’s issue was, but it turns out our issue was a namespacing one if anyone comes up against the same error.

We were using an Auth0 domain for the attribute in our custom rule ([see here](https://auth0.com/docs/extensions/delegated-admin/v3#assign-roles-to-the-user)), so it was being automatically excluded from our tokens. Any [valid namespace](https://auth0.com/docs/tokens/guides/create-namespaced-custom-claims#guidelines) works. I assume it just has to end in `auth0-delegated-admin` for the extension to pick up on it.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 12, 2020, 8:24am UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/6 "2020-05-12T08:24:32Z")

</div>

Thanks a ton for sharing it with the rest of community @tmeumann_ais!

---

<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:** [May 27, 2020, 8:24am UTC](https://community.auth0.com/t/auth0-delegated-admin-dashboard-missing-scope-read-users/39629/7 "2020-05-27T08:24:34Z")

</div>

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