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

言語
認証情報
Bearer
JWT
LoadingLoading…
応答
試してみる!をクリックしてリクエストを開始し、こちらで応答をご確認ください! または例を選択:
application/json