Can I get permissions granted to a user against an Entity in an OAuth grant
-
I create an entity, then granted a user access to that entity using the API.
Is there a way I can get those entity permissions in authorization code grant?
-
Not at the current time.
You can of course use the API to retrieve the grants against your entity and you can search for all entities a user has been granted pemissions on, but this is not currently part of any OAuth grants.
Please file an issue outlining your use case if you'd like support to be added.
-
The ability to search grants for a user was a gap in our documentation. We have since released an update to showcase/describe the use case.
https://fusionauth.io/docs/v1/tech/apis/entity-management/grants/#search-for-grants
Your API endpoint call will look like below:
GET /api/entity/grant/search?userId={uuid}
Additional possible filtering functionality is documented in this feature request.