A cloud-based identity and access management service for securing user authentication and resource access
Hi @Niraj Kumar · Welcome to QnA platform and thanks for your query.
When the token is requested under user context using Oauth flows like Authorization Code/Implicit/ROPC, the permissions are included in Scope (scp) claim and when you request token under application context using client_credentials flow, the permissions are included in Role claim. Depending on the flow you used to get the token, you have to use the Scope and Role accordingly.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.