Skip to main content
DELETE
/
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.delete("id", "user_id", {
        roles: [
            "roles",
        ],
    });
}
main();

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Organization identifier.

Maximum string length: 50
user_id
string
required

User ID of the organization member to remove roles from.

Body

roles
string<role-id>[]
required

List of roles IDs associated with the organization member to remove.

Minimum array length: 1

Response

Roles successfully removed from organization member.