GuidesAPI Reference
API Reference

Get grants given to a user, app, or group

Get grants. This call describes the permissions assigned to the specified entity that grant access to the specified resource. Empty list is returned if no permissions are found for the resource hrn provided regardless of the resource being present or not


Access Control:

  • The calling principal must have either "listGrants" or "share" action permission for the resource "{resourceHrn}" in the "authorization" service.
  • The realm of the calling principal MUST match the realm of the requested app.
  • The calling principal MUST NOT include a project scope.
Path Params
string
required

The hrn that identifies the resource

string
required

The entityId to get the grants of

Query Params
string
required

The type of the entity requested. Must be one of user, app, or group

Responses

404

Resource or App not found

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json