GetBindInfo - Get the binding information of a member

Updated at:

Retrieves all binding information for a specified member.

Applicable editions

Central edition, Region edition

Endpoints and authorization information

  • Get the endpoint to replace {domain} in the request syntax.

  • Get a personal access token.

  • Get the organization ID. This parameter is required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required permission

Organization Management

Organization binding

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/members/{memberId}/binds

Region edition

GET https://{domain}/oapi/v1/platform/members/{memberId}/binds

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID.

memberId

string

path

Yes

Member ID.

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/platform/organizations/{organizationId}/members/{memberId}/binds' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/platform/members/{memberId}/binds' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

object

binds

array

Binding information.

-

object

bindId

string

Binding ID.

99d1****6124

bindType

string

Binding type.

saml

name

string

Display name of the binding.

name

memberId

string

Member ID.

99d1****6124

userId

string

User ID.

99d1****6124

Response example

{
    "binds": [
        {
            "bindId": "99d1****6124",
            "bindType": "saml",
            "name": "name"
        }
    ],
    "memberId": "99d1****6124",
    "userId": "99d1****6124"
}

Error codes

For more information about API error codes, see the Error Code Center.