# Is it possible to get the contextual object with management api?

**URL:** <https://community.auth0.com/t/is-it-possible-to-get-the-contextual-object-with-management-api/106396>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [May 8, 2023, 1:22pm UTC](https://community.auth0.com/t/is-it-possible-to-get-the-contextual-object-with-management-api/106396 "2023-05-08T13:22:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tohayon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tohayon/32/46995_2.png) [@tohayon](https://community.auth0.com/u/tohayon)\
**Post date:** [May 8, 2023, 1:22pm UTC](https://community.auth0.com/t/is-it-possible-to-get-the-contextual-object-with-management-api/106396/1 "2023-05-08T13:22:38Z")

</div>

I’m looking to migrate some of the logic from our `Rule` script to our application using the Auth0 Management API. I have successfully retrieved the user object using the API, but I also require important information from the contextual object. How can I obtain this object using the Management API?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 8, 2023, 8:18pm UTC](https://community.auth0.com/t/is-it-possible-to-get-the-contextual-object-with-management-api/106396/2 "2023-05-08T20:18:18Z")

</div>

Hi there @tohayon welcome to the community!

> [@tohayon](#):
>
> How can I obtain this object using the Management API?

Unfortunately, the context object is not going to be available via the Management API. Depending on your use case, it may be worth looking into adding [metadata](https://auth0.com/docs/manage-users/user-accounts/metadata) and/or [custom claims](https://auth0.com/docs/secure/tokens/json-web-tokens/create-custom-claims) to tokens which _can_ be leveraged by your own application/API outside of Rules.

---

<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 22, 2023, 8:19pm UTC](https://community.auth0.com/t/is-it-possible-to-get-the-contextual-object-with-management-api/106396/3 "2023-05-22T20:19:03Z")

</div>

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