Skip to main content

AddRoleToUser

Add roles to users

Description

Assign a role to a user in an application.

Method

POST

Request URL Format

/api/v0/applications/:app-id/userroles

URL Params

app-id: Application display ID

Payload

{
"user_id": "ロールを付加したい対象のユーザーID",
"role_id": "ロール表示ID"
}

Request URL Sample

POST https://api.xxx.com/api/v0/applications/:app-id/userroles

Response Sample

Status 200

{"error": null //エラーの有無}

Status 403

{
"code": 999,
"message": "No privileges to the Application"//No authority to add project permissions for users
}