Skip to main content
POST
Assign User Role

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

パスパラメータ

id
string<uuid>
必須

User identifier (UUID).

ボディ

application/json
role_id
string<uuid>
必須

Role to assign. Must exist in the organization.

レスポンス

OK. The role is already assigned; returns the existing assignment.

A direct role assignment made via POST /users/{id}/roles.

id
string<uuid>

Assignment identifier.

user_id
string<uuid>

The user this role is assigned to.

role_id
string<uuid>

The role identifier.

role_name
string

The name of the role.

role_type
enum<string>

Always system_role (admin) for assignments made via this endpoint.

利用可能なオプション:
system_role
grant_type
enum<string>

Always direct for assignments made via this endpoint.

利用可能なオプション:
direct
granted_at
string<date-time>

ISO 8601 UTC.

granted_by
string<uuid>

The user who granted the role.