メインコンテンツへスキップ
POST
/
organizations
/
{id}
/
members
/
{user_id}
/
roles
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.organizations.members.roles.assign("id", "user_id", {
        roles: [
            "roles",
        ],
    });
}
main();

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

Organization identifier.

Maximum string length: 50
user_id
string
必須

ID of the user to associate roles with.

ボディ

roles
string<role-id>[]
必須

List of roles IDs to associated with the user.

Minimum array length: 1

レスポンス

Roles successfully associated with user.