# Moving from Rules to Actions. Where is the IDP root user data?

**URL:** <https://community.auth0.com/t/moving-from-rules-to-actions-where-is-the-idp-root-user-data/77091>\
**Category:** Get Help\
**Tags:** actions, rules, login\
**Created:** [January 27, 2022, 12:26am UTC](https://community.auth0.com/t/moving-from-rules-to-actions-where-is-the-idp-root-user-data/77091 "2022-01-27T00:26:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattbmd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mattbmd/32/33283_2.png) [@mattbmd](https://community.auth0.com/u/mattbmd)\
**Post date:** [January 27, 2022, 12:26am UTC](https://community.auth0.com/t/moving-from-rules-to-actions-where-is-the-idp-root-user-data/77091/1 "2022-01-27T00:26:19Z")

</div>

We’re trying to move from Rules to Actions but we are seeing some potential gaps. We have rules that did something like this:

```auto
context.idToken[namespace + 'DOB'] = user.DOB.replace(/\//g, '-');

```

We would be able to access data set by the IDP under the user object (such as DOB) and stash that in the idToken so we could utilize it on our backend. We’re having a hard time finding where that root-level user data lives. We’re doing a post-login action.

We can see the data we want to modify/have access to in the Raw Json when viewing the user in Auth0. it’s also in the Identity Provider Attributes.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 27, 2022, 12:50am UTC](https://community.auth0.com/t/moving-from-rules-to-actions-where-is-the-idp-root-user-data/77091/3 "2022-01-27T00:50:38Z")

</div>

Hi @mattbmd,

Welcome to the Auth0 Community!

I understand you would like to migrate from Rules to Actions but could not find the equivalent code in Actions.

Unfortunately, the IDP root attributes cannot be obtained with Actions yet. As we get closer to the end of life of Rules, the features you see in Rules will be available in Actions.

For now, we recommend migrating the Actions that can be translated into Rules and keeping the remainder in Rules until official migration strategies emerge sometime later this year in 2022.

Hoped this helps!

Please let me know if you have any further questions.

Thank you.

---

<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:** [February 11, 2022, 12:51am UTC](https://community.auth0.com/t/moving-from-rules-to-actions-where-is-the-idp-root-user-data/77091/4 "2022-02-11T00:51:26Z")

</div>

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