# Management API Users Missing Data

**URL:** <https://community.auth0.com/t/management-api-users-missing-data/7614>\
**Category:** Get Help\
**Tags:** tier1, management-api\
**Created:** [July 21, 2017, 7:05pm UTC](https://community.auth0.com/t/management-api-users-missing-data/7614 "2017-07-21T19:05:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Crider](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Jason\_Crider](https://community.auth0.com/u/Jason_Crider)\
**Post date:** [July 21, 2017, 7:05pm UTC](https://community.auth0.com/t/management-api-users-missing-data/7614/1 "2017-07-21T19:05:17Z")

</div>

I am using the management API to export a .json file of all of the users in our Auth0 account and I’ve noticed I’m missing app metadata for some of them. When I went through the list of users missing this data in the dashboard, the data was actually in the account. I’m not sure if I’m doing something wrong, or if the API is just being weird.

The code I’m using is here: [Get all auth0 users · GitHub](https://gist.github.com/xylude/1c38fcd8d08ede96975af5ef7155b233)

If anyone can take a look and let me know if there’s something I’m missing I’d appreciate it, thanks!

---

<div class="post-metadata">

**Author:** ![don11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/don11/32/4272_2.png) [@don11](https://community.auth0.com/u/don11)\
**Post date:** [August 1, 2017, 1:24am UTC](https://community.auth0.com/t/management-api-users-missing-data/7614/2 "2017-08-01T01:24:41Z")

</div>

We’re having this issue as well. The dashboard shows one set of data but the API shows different data. Even after several days the API request response never matches up with what’s listed in the dashboard. This seems to happen randomly and not with every user.  
I have open support tickets with Auth0 but I haven’t received an answer yet.

---

<div class="post-metadata">

**Author:** ![Jason\_Crider](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Jason\_Crider](https://community.auth0.com/u/Jason_Crider)\
**Post date:** [August 1, 2017, 1:28am UTC](https://community.auth0.com/t/management-api-users-missing-data/7614/3 "2017-08-01T01:28:33Z")

</div>

Yeah, it seems like they are 2 different collections of data that are out of sync with each other. My ‘fix’ was to run the get all users API call first, then make a second pass where I check if the user has their app\_metadata. If not, the script would run an additional call to the get user API and try to retrieve the user’s document and add it to the list. Then I manually went through the users that were still missing data after that and confirmed that they were actually missing the data. It was a real fun time for me.

---

<div class="post-metadata">

**Author:** ![Jason\_Crider](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Jason\_Crider](https://community.auth0.com/u/Jason_Crider)\
**Post date:** [August 1, 2017, 1:29am UTC](https://community.auth0.com/t/management-api-users-missing-data/7614/4 "2017-08-01T01:29:22Z")

</div>

If it helps (and you are using the node API) I can post up a gist of the code I used to do all of this.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/management-api-users-missing-data/7614/5 "2018-03-02T05:55:32Z")

</div>


