# Build an Admin Dashboard with Express and Vue: Adding User Authorization

**URL:** <https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302>\
**Category:** Blog Discussions\
**Created:** [November 16, 2020, 11:16am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302 "2020-11-16T11:16:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertino.calcaterra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/robertino.calcaterra/32/66825_2.png) [@robertino.calcaterra](https://community.auth0.com/u/robertino.calcaterra)\
**Post date:** [November 16, 2020, 11:16am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/1 "2020-11-16T11:16:50Z")

</div>

Learn how to use the Auth0 Management API with Vue and Express to build an admin dashboard that gets user information and delete users.  
[Read more…](https://auth0.com/blog/build-an-admin-dashboard-with-express-and-vue-getting-started/): Available today!

Brought for you by @holly

 ![Build an Admin Dashboard with Express and Vue: Adding User Authorization](https://global.discourse-cdn.com/auth0/original/3X/d/4/d4525636313786cd28b5d12a0251e3d0217ec77e.png)

---

<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:** [November 16, 2020, 11:20am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/2 "2020-11-16T11:20:08Z")

</div>

Let us know your thoughts about the article!

---

<div class="post-metadata">

**Author:** ![holly](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/holly/32/18569_2.png) [@holly](https://community.auth0.com/u/holly)\
**Post date:** [December 10, 2020, 9:04pm UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/3 "2020-12-10T21:04:28Z")

</div>

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

---

<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:** [March 7, 2022, 2:08pm UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/4 "2022-03-07T14:08:22Z")

</div>



---

<div class="post-metadata">

**Author:** ![HNagarajan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@HNagarajan](https://community.auth0.com/u/HNagarajan)\
**Post date:** [December 1, 2023, 2:05pm UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/5 "2023-12-01T14:05:45Z")

</div>

Hi,  
I have followed the article carefully and made the changes in my app/dashboard.  
After making the changes I’m still not able see the users list in the dashboard.

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

And I’m getting below error in the server application when I access the url directly. This may be correct.

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

Overall I’m not able to see the list of users.  
Anyone else also experience similer issue.?

---

<div class="post-metadata">

**Author:** ![davidplane](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidplane/32/61188_2.png) [@davidplane](https://community.auth0.com/u/davidplane)\
**Post date:** [April 25, 2024, 7:52am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/6 "2024-04-25T07:52:53Z")

</div>

I followed the guide but keep getting the error `management.getUsers is not a function`

Tried other functions in [ManagementClient - Documentation](https://node-auth0-docs.netlify.app/module-management.managementclient/) but it also doesn’t work.

Is there something wrong with the node-auth0 package?

---

<div class="post-metadata">

**Author:** ![bajcmartinez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bajcmartinez/32/46418_2.png) [@bajcmartinez](https://community.auth0.com/u/bajcmartinez)\
**Post date:** [April 25, 2024, 8:24am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/7 "2024-04-25T08:24:51Z")

</div>

Hi @davidplane, sorry to hear you are having issues with the `node-auth0` package.

In order to list the users in your Auth0 tenant, you need to access the user object as follows:

```javascript
import { ManagementClient } from 'auth0';

const management = new ManagementClient({
  domain: '{YOUR_TENANT_DOMAIN}',
  clientId: '{YOUR_CLIENT_ID}',
  clientSecret: '{YOUR_CLIENT_SECRET}',
});

const allUsers = [];
const users = await management.users.getAll({
  include_totals: true,
  page: 0,
});

```

For documentation related to the SDK, please refer to the official SDK docs here: [auth0](https://auth0.github.io/node-auth0/)

I’ll also take a look into this tutorial as it has been published a few years back, and it is perhaps not displaying accurate information.

Hope this helps!  
Thanks

---

<div class="post-metadata">

**Author:** ![davidplane](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidplane/32/61188_2.png) [@davidplane](https://community.auth0.com/u/davidplane)\
**Post date:** [April 26, 2024, 4:00am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/8 "2024-04-26T04:00:35Z")

</div>

ah i guess i was looking at old documentation. I have checked that the api has the required permissions but I’m currently getting empty response for retrieving all users. The machine to machine application was also authorized.

Do you know what could be the issue?

Update: I’ve tried with the auth0-python package and everything works fine. Using the same client id and secret also

---

<div class="post-metadata">

**Author:** ![bajcmartinez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bajcmartinez/32/46418_2.png) [@bajcmartinez](https://community.auth0.com/u/bajcmartinez)\
**Post date:** [April 26, 2024, 6:27am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/9 "2024-04-26T06:27:56Z")

</div>

Hi @davidplane, both libraries should work in the same way with the same parameters, after all, both libraries are a wrapper to the Auth0 Management API. With that said, is it possible that you have more than one [database connection in the Auth0 Dashboard](https://manage.auth0.com/dashboard/#/connections/database)? If that’s the case, try adding the parameter `connection` to the `getAll` function, and send in the right connection name. For example:

```auto
const users = await management.users.getAll({
  include_totals: true,
  page: 0,
  connection: "Username-Password-Authentication",
});

```

Please let me know if that works for you.

---

<div class="post-metadata">

**Author:** ![davidplane](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidplane/32/61188_2.png) [@davidplane](https://community.auth0.com/u/davidplane)\
**Post date:** [April 28, 2024, 9:45am UTC](https://community.auth0.com/t/build-an-admin-dashboard-with-express-and-vue-adding-user-authorization/53302/10 "2024-04-28T09:45:23Z")

</div>

ah that seems to be it! Thank you!
