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

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.users.permissions.create("id", {
        permissions: [
            {
                resourceServerIdentifier: "resource_server_identifier",
                permissionName: "permission_name",
            },
        ],
    });
}
main();

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

ID of the user to assign permissions to.

ボディ

permissions
object[]
必須

List of permissions to add to this user.

Minimum array length: 1

レスポンス

Permissions assigned to user.