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

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

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Users.Identities.Delete(
        context.TODO(),
        "id",
        management.UserIdentityProviderEnumAd,
        "user_id",
    )
}
[
  {
    "connection": "Initial-Connection",
    "user_id": "5457edea1b8f22891a000004",
    "provider": "auth0",
    "isSocial": true,
    "access_token": "<string>",
    "access_token_secret": "<string>",
    "refresh_token": "<string>",
    "profileData": {
      "email": "<string>",
      "email_verified": true,
      "name": "<string>",
      "username": "johndoe",
      "given_name": "<string>",
      "phone_number": "<string>",
      "phone_verified": true,
      "family_name": "<string>"
    }
  }
]

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

ID of the primary user account.

provider
enum<string>
必須

Identity provider name of the secondary linked account (e.g. google-oauth2). The type of identity provider

利用可能なオプション:
ad,
adfs,
amazon,
apple,
dropbox,
bitbucket,
aol,
auth0-oidc,
auth0,
baidu,
bitly,
box,
custom,
daccount,
dwolla,
email,
evernote-sandbox,
evernote,
exact,
facebook,
fitbit,
flickr,
github,
google-apps,
google-oauth2,
instagram,
ip,
line,
linkedin,
oauth1,
oauth2,
office365,
oidc,
okta,
paypal,
paypal-sandbox,
pingfederate,
planningcenter,
salesforce-community,
salesforce-sandbox,
salesforce,
samlp,
sharepoint,
shopify,
shop,
sms,
soundcloud,
thirtysevensignals,
twitter,
untappd,
vkontakte,
waad,
weibo,
windowslive,
wordpress,
yahoo,
yandex
user_id
string
必須

ID of the secondary linked account (e.g. 123456789081523216417 part after the | in google-oauth2|123456789081523216417).

レスポンス

User identity successfully unlinked.

connection
string
デフォルト:Initial-Connection
必須

The name of the connection for the identity.

user_id
string
デフォルト:5457edea1b8f22891a000004
必須

The unique identifier for the user for the identity.

provider
string
デフォルト:auth0
必須

The type of identity provider.

isSocial
boolean

true if the identity provider is a social provider, falses otherwise

access_token
string

IDP access token returned only if scope read:user_idp_tokens is defined

access_token_secret
string

IDP access token secret returned only if scope read:user_idp_tokens is defined.

refresh_token
string

IDP refresh token returned only if scope read:user_idp_tokens is defined.

profileData
object