# Rules to Actions migration - user permissions in Id Token

**URL:** <https://community.auth0.com/t/rules-to-actions-migration-user-permissions-in-id-token/113673>\
**Category:** Get Help\
**Tags:** extensibility, actions-extensibility\
**Created:** [August 15, 2023, 3:26pm UTC](https://community.auth0.com/t/rules-to-actions-migration-user-permissions-in-id-token/113673 "2023-08-15T15:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GFSJohn](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@GFSJohn](https://community.auth0.com/u/GFSJohn)\
**Post date:** [August 15, 2023, 3:26pm UTC](https://community.auth0.com/t/rules-to-actions-migration-user-permissions-in-id-token/113673/1 "2023-08-15T15:26:00Z")

</div>

Hi, as part of some work I’m doing to migrate from Rules to Actions I need to replicate some code that we have that adds the users permissions to the Id token, so that the UI can show the correct features. Looking at the docs for Actions we have easy access to a user’s roles, put nothing to allow access to permissions, which seems and odd ommission. I’d rather avoid having to make a call into the management API as that’s more of a pain in an Action than a Rule, and isn’t recommended. Has anyone got any other options, or things I might have missed?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 18, 2023, 1:58pm UTC](https://community.auth0.com/t/rules-to-actions-migration-user-permissions-in-id-token/113673/3 "2023-08-18T13:58:27Z")

</div>

Hi @GFSJohn,

Welcome to the Auth0 Community!

Can you share the rule code you are trying to replicate?

---

<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:** [September 7, 2023, 6:32pm UTC](https://community.auth0.com/t/rules-to-actions-migration-user-permissions-in-id-token/113673/4 "2023-09-07T18:32:42Z")

</div>

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