Skip to main content

PermissionGrantWithResource

Permission grant enriched with display metadata for read responses.

subject_typeSubjectType (string)required

Subject type (user, group, service, or public)

Possible values: [user, group, service, public]

subject_id object

Subject ID. For subject_type='public' use '*' (or omit); for user/group/service it must be a concrete id.

anyOf
string
roleRole (string)required

Role to grant

Possible values: [owner, writer, reader, use]

resource_typeResource Type (string)required

Resource type

resource_idResource Id (string)required

Resource ID

resource_name object

Display name of the resource associated with this permission.

anyOf
string
resource_alias object

Alias of the resource associated with this permission.

anyOf
string
PermissionGrantWithResource
{
"subject_type": "user",
"subject_id": "string",
"role": "owner",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"resource_alias": "string"
}