I have a application which will invoke
1"/api/v2/users/{userId}"
2 /api/v2/locations/{locationId}
and more api which does not expect any explicit permission using client credentials grant.
OAuth application does not require any explicit permissions but I need to assign a role when I create application.
Wat is minimum permission which I can use to create a role and assign to this app?
You can find scopes and permissions required for the endpoints you want to use in the API documentation: https://developer.genesys.cloud/devapps/api-explorer. Grant those permissions via the role and assign the scopes to the client. If you don't need any permissions or scopes, don't assign any.
I have mentioned Client Credential grant and role is mandatory.
Also scope having tested based on your comment does not take any effect for client credentials grant.
None of the API require any permission. But I need to assign a role. That is the reason I am checking when no explicit permissions are required - "wat is the minimum permission which I can assign to a role ?" and then I can associate that role to this app.
You can create a role with no enabled permissions.
Assign this role to your user - so you can then leverage it when you create your OAuth Client Credentials Grant client.