Get User Role
GET/api/v1/organizations/:organization_id/users/roles
Get the role of a user in an organization.
Request
Path Parameters
Cookie Parameters
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- UserOrganizationRole
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
Array [
- MOD1
- MOD1
- MOD1
]
anyOf
Schema for a user's role in an organization.
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
The user's ID.
The organization's ID.
The role's ID.
role
object
required
The role.
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
A name for the role.
Possible values: non-empty
and <= 3000 characters
organization_id
object
required
The organization's ID.
anyOf
string
permissions
object[]
required
The actual permissions of the role.
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
A name for the permission.
Possible values: non-empty
and <= 3000 characters
description
object
required
A description for the permission.
anyOf
string
Whether the permission is granted or not.
{}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}