Management API
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();
Assign permissions to a user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the user to assign permissions to.
List of permissions to add to this user.
1
Show child attributes
Permissions assigned to user.