Hi @pranjalbatra22,
Thank you for your response.
In this case, you will also need to use the Management API v2 in Actions to assign the roles to a user.
See this How can I use the Management API in Actions? FAQ for details.
Please let me know if there’s anything else I can do to help.
Thanks!