List permissions for a subject.
GET
/api/admin/resource-permissions/subject/{id}
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/resource-permissions/subject/example \ --header 'Authorization: Bearer <token>'Return active ID-level permissions granted to a subject. The subject type defaults to user.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Subject identifier.
Query Parameters
Section titled “Query Parameters ” type
string
Subject type, default user.
Responses
Section titled “ Responses ”Subject resource permission response.
Media type application/json
object
subject_id
required
string
subject_type
required
string
permissions
required
Array<object>
object
id
required
string
tenant_id
required
string
subject_type
required
string
subject_id
required
string
resource_type
required
string
resource_id
required
string
actions
required
Array<string>
condition
object
key
additional properties
expires_at
integer format: int64
is_active
required
boolean
granted_by
string
created_at
required
integer format: int64
updated_at
required
integer format: int64
key
additional properties
key
additional properties
Example
{ "permissions": [ { "subject_type": "user" } ]}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}