Hi @rutwik246,
Welcome to the Auth0 Community!
You can find the solution to your issue by following the steps in the following Knowledge Solution: How to Add Roles and Permissions to the ID Token Using Actions. All Knowledge Solutions posts have been validated by a team of Auth0 technical reviewers, so you can be confident in the technical accuracy of the content. Please let me know if you have any additional questions or concerns!
Thanks
Dawid