# Management API does not return app\_metadata

**URL:** <https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639>\
**Category:** Get Help\
**Tags:** manage-users, management-api\
**Created:** [November 1, 2017, 12:04am UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639 "2017-11-01T00:04:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.casillas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.casillas/32/12778_2.png) [@david.casillas](https://community.auth0.com/u/david.casillas)\
**Post date:** [November 1, 2017, 12:04am UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639/1 "2017-11-01T00:04:12Z")

</div>

We’ve been getting users using the PHP Management API, including `app_metadata` info.

Code excerpt:

```
$params = array(
	'fields' => 'user_id,email,app_metadata,identities',
	'include_fields' => 'true',
	'q' => $searchCondition,
	'search_engine' => 'v2'
);
$api = new Management(Config::AUTH0_MANAGEMENT_USERS_TOKEN, Config::AUTH0_DOMAIN);
$api->users->search($params);

```

Now users are still returned, but the `app_metada` info is missing. This is an example of data returned for a demo user;

```
[0] => Array
            (
                [identities] => Array
                    (
                        [0] => Array
                            (
                                [isSocial] => 
                                [user_id] => 59f8a53546509072ef2558d3
                                [provider] => auth0
                                [connection] => DB-devel
                            )

                    )

                [user_id] => auth0|59f8a53546509072ef2558d3
                [email] => admin@devel0.com
            )

    )

```

Are there any API changes that can explain this behavior?

The used Auth0 client is not OIDC comformant.

Please this is a very critical feature affecting all our customers. User management is now broken inside our application.

---

<div class="post-metadata">

**Author:** ![miro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/miro/32/12765_2.png) [@miro](https://community.auth0.com/u/miro)\
**Post date:** [November 2, 2017, 6:06pm UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639/2 "2017-11-02T18:06:02Z")

</div>

Did you try using the Auth0 Management API Explorer at [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id)? Does it give you the same response?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 2, 2017, 11:13pm UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639/3 "2017-11-02T23:13:48Z")

</div>

Depending on the actual timings you observed the issue it’s likely that was connected to this [incident](https://status.auth0.com/incidents/67n9r92zydy2) where indeed some requests to the Management APi failed to return user metadata. However, the situation should now be resolved do let me know if you still experience an issue.

---

<div class="post-metadata">

**Author:** ![david.casillas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.casillas/32/12778_2.png) [@david.casillas](https://community.auth0.com/u/david.casillas)\
**Post date:** [November 3, 2017, 4:00am UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639/4 "2017-11-03T04:00:42Z")

</div>

Yes that was the problem. We have opened a ticket and it is now solved. Thanks.

---

<div class="post-metadata">

**Author:** ![david.casillas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.casillas/32/12778_2.png) [@david.casillas](https://community.auth0.com/u/david.casillas)\
**Post date:** [November 3, 2017, 4:00am UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639/5 "2017-11-03T04:00:42Z")

</div>

Yes that was the problem. We have opened a ticket and it is now solved. Thanks.

---

<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:57am UTC](https://community.auth0.com/t/management-api-does-not-return-app-metadata/8639/6 "2018-03-02T05:57:14Z")

</div>


