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

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

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

ID of the role to assign users to.

ボディ

users
string<user-id-with-max-length>[]
必須

user_id's of the users to assign the role to.

レスポンス

Role users successfully updated.