メインコンテンツへスキップ
DELETE
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
members
/
{user_id}
/
roles
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    members "github.com/auth0/go-auth0/management/organizations/members"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Organizations.Members.Roles.Delete(
        context.TODO(),
        "id",
        "user_id",
        &members.DeleteOrganizationMemberRolesRequestContent{
            Roles: []string{
                "roles",
            },
        },
    )
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

Organization identifier.

Maximum string length: 50
user_id
string
必須

User ID of the organization member to remove roles from.

ボディ

roles
string<role-id>[]
必須

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

Minimum array length: 1

レスポンス

Roles successfully removed from organization member.