I have managed this by just making HTTP requests from within my rule - not relying on the auth0 node client. You do need to get a new token that has the appropriate grants. See my responses in the other thread with some example code.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Assign Roles to users using Rules | 14 | 16162 | March 14, 2020 | |
| Assigning default role(s) to new users | 10 | 17168 | July 19, 2019 | |
| Auth0 metadata updating roles for a user using node.js | 8 | 5010 | December 17, 2018 | |
| Assigning roles (from Authorization Extension) to a new user via Management API | 4 | 4242 | November 22, 2019 | |
| Add default Role via Rule after sign up New User does not add this role to the user in the Management Portal | 4 | 2493 | January 19, 2022 |