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 | |
---|---|---|---|---|
Add default Role via Rule after sign up New User does not add this role to the user in the Management Portal | 4 | 2474 | January 19, 2022 | |
Auth0 metadata updating roles for a user using node.js | 8 | 4926 | December 17, 2018 | |
Role Based-Access Control on Signup? | 2 | 3645 | March 15, 2021 | |
How to add roles, permissions to a user during signup? | 5 | 17866 | January 9, 2020 | |
Assigning user roles in a rule | 5 | 4862 | January 22, 2024 |