Skip to main content
DELETE
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
members
/
{user_id}
/
roles
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Organizations.Members;
using System.Collections.Generic;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.Organizations.Members.Roles.DeleteAsync(
            id: "id",
            userId: "user_id",
            request: new DeleteOrganizationMemberRolesRequestContent {
                Roles = new List<string>(){
                    "roles",
                }

            }
        );
    }

}

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.