GetIdentityProvider

Updated at:

Retrieves the identity provider.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eiam:GetIdentityProvider

get

*IdentityProvider

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/identityprovider/{#IdentityProviderId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

IdentityProviderId

string

Yes

The identity provider ID.

idp_my664lwkhpicbyzirog3xxxxx

Response elements

Element

Type

Description

Example

object

IdentityProviderDetail

object

The identity provider information.

AdvancedStatus

string

The advanced configuration capabilities. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

AuthnSourceSupplier

string

The authentication source product, such as Okta, Google, or Azure AD. Valid values:

  • urn:alibaba:idaas:idp:alibaba:dingtalk: DingTalk.

  • urn:alibaba:idaas:idp:unknown:ldap: LDAP.

  • urn:alibaba:idaas:idp:alibaba:idaas: Alibaba Cloud IDaaS.

  • urn:alibaba:idaas:idp:tencent:wecom: WeCom.

  • urn:alibaba:idaas:idp:bytedance:lark: Lark.

  • urn:alibaba:idaas:idp:microsoft:ad: Active Directory.

  • urn:alibaba:idaas:idp:microsoft:aad: Azure Active Directory.

  • urn:alibaba:idaas:idp:alibaba:sase: Alibaba Cloud SASE.

urn:alibaba:idaas:idp:bytedance:lark

AuthnSourceType

string

The authentication method type, such as OIDC or SAML. Valid values:

  • urn:alibaba:idaas:authntype:oidc: OIDC.

  • urn:alibaba:idaas:authntype:saml2: SAML.

urn:alibaba:idaas:authntype:oidc

AuthnStatus

string

Specifies whether the corresponding IdP supports authentication. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

CreateTime

integer

The creation time. The value is a UNIX timestamp in milliseconds.

1726021079000

Description

string

The description of the identity provider.

for poc test

DingtalkAppConfig

object

The basic configuration of DingTalk.

AppKey

string

The AppKey of the DingTalk first-party application.

41reopmwoy9s

AppSecret

string

The AppSecret of the DingTalk first-party application.

REOQ6Cl55kriOd8NOBeqWYLKpHR4p6fdZxxxx

CorpId

string

The CorpId of the DingTalk first-party application.

3756043633237690761

DingtalkVersion

string

The DingTalk version. Valid values:

  • public_dingtalk: Standard DingTalk.

  • private_dingtalk: Exclusive DingTalk.

public_dingtalk

EncryptKey

string

The EncryptKey of the DingTalk application.

29003eb11d0a28b4802a6f02fb8aa25dff730e2ac26ffd200d

VerificationToken

string

The VerificationToken of the DingTalk application.

5ba9c127a7abe029003eb11d0a28b4802a6f02fb8aa25dff730e2ac26ffd200d

DingtalkLoginVersion

string

The DingTalk scan-to-logon version.

Valid values:

  • old_version :

    Legacy DingTalk scan-to-logon.

  • new_version :

    New DingTalk scan-to-logon.

old_version

DingtalkProvisioningConfig

object

The DingTalk synchronization configuration. This parameter is returned only when the identity provider type is DingTalk.

AuthedDepartmentIds

array<object>

The authorized DingTalk departments.

object

DeptId

string

The ID of the DingTalk department.

123xxx444

DeptName

string

The name of the DingTalk department.

test_department

AuthedUsers

array<object>

The list of authorized DingTalk accounts.

object

Name

string

The name of the DingTalk user.

zhangsan

UserId

string

The ID of the DingTalk user.

130308333929200479

CorpId

string

The CorpId of the DingTalk enterprise.

ding_xxxxx

CorpName

string

The name of the DingTalk enterprise.

test_enterprise

IdentityProviderExternalId

string

The external ID of the identity provider.

idp_xxxx

IdentityProviderId

string

The identity provider ID.

idp_mwpcwnhrimlr2horx7xgg7pp7y

IdentityProviderName

string

The name of the identity provider.

test

IdentityProviderType

string

The synchronization type of the identity provider. Valid values:

  • urn:alibaba:idaas:idp:alibaba:dingtalk:pull: Inbound DingTalk.

  • urn:alibaba:idaas:idp:alibaba:dingtalk:push: Outbound DingTalk.

  • urn:alibaba:idaas:idp:tencent:wecom:pull: Inbound WeCom.

  • urn:alibaba:idaas:idp:bytedance:lark:pull: Inbound Lark.

  • urn:alibaba:idaas:idp:microsoft:ad:pull: Inbound AD.

  • urn:alibaba:idaas:idp:unknown:ldap:pull: Inbound LDAP.

  • urn:alibaba:idaas:idp:standard:oidc: Standard OIDC.

  • urn:alibaba:idaas:idp:alibaba:sase: SASE custom OIDC.

urn:alibaba:idaas:idp:alibaba:dingtalk:push

InstanceId

string

The instance ID.

idaas_x2df3bak3uwnapqm6xxxx

LarkConfig

object

The Lark configuration.

AppId

string

The App ID of the Lark custom application.

cli_a7a99f53a317100c

AppSecret

string

The AppSecret of the Lark custom application.

REOQ6Cl55kriOd8NOBeqWYLKpHR4p6fdZxxxx

EnterpriseNumber

string

The enterprise code of Lark.

FX1231xxxx

EncryptKey

string

The EncryptKey of the Lark custom application.

VkdWw91mdkrjVFr3ObNwefap21dfbZbK

VerificationToken

string

The VerificationToken of the Lark custom application.

VkdWw91mdkrjVFr3ObNwefap21dfbZbK

LastStatusCheckJobResult

string

The result of the last status check.

success

LdapConfig

object

The information about the AD/LDAP identity provider.

AdministratorPassword

string

The password of the AD/LDAP administrator.

123456

AdministratorUsername

string

The username of the AD/LDAP administrator.

example.com

CertificateFingerprintStatus

string

Specifies whether to verify the certificate fingerprint. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

enabled

CertificateFingerprints

array

The list of certificate fingerprints.

string

The certificate fingerprint of the public key in SHA-256 format.

asdsadaasd

LdapProtocol

string

The communication protocol for AD/LDAP.

ldap

LdapServerHost

string

The AD/LDAP server address.

127.xx.xx.100

LdapServerPort

integer

The AD/LDAP server address.

389

StartTlsStatus

string

Specifies whether StartTLS is enabled. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

enabled

LockReason

string

The lock reason.

financial

NetworkAccessEndpointId

string

The network endpoint ID.

nae_mx4vsadfe6govkqkwckxxxx

OidcConfig

object

The OIDC IdP configuration.

AuthnParam

object

The OIDC client authentication configuration.

AuthnMethod

string

The OIDC authentication method.

client_secret_post

ClientId

string

The OIDC client ID.

mkv7rgt4d7i4u7zqtzev2mxxxx

ClientSecret

string

The OIDC client secret.

CSEHDddddddxxxxuxkJEHPveWRXBGqVqRsxxxx

EndpointConfig

object

The OIDC endpoint configuration.

AuthorizationEndpoint

string

The OIDC authorization endpoint.

https://example.com/oauth/authorize

Issuer

string

The OIDC issuer information.

https://example.com/oauth

JwksUri

string

The OIDC JWKS URI.

https://example.com/oauth/jwks

TokenEndpoint

string

The OIDC token endpoint.

https://example.com/oauth/token

UserinfoEndpoint

string

The OIDC userinfo endpoint.

https://example.com/oauth/userinfo

GrantScopes

array

The list of OIDC grant scopes.

["openid"]

string

The OIDC grant scope.

ou_asdaq1addsxzdq1xxxx

GrantType

string

The OIDC grant type.

authorization_code

PkceChallengeMethod

string

The PKCE algorithm. Valid values:

  • S256: SHA-256.

  • plain: Plaintext.

S256

PkceRequired

boolean

Specifies whether to use PKCE in the authorization code mode.

true

UdPullConfig

object

The inbound synchronization configuration.

GroupSyncStatus

string

Specifies whether group synchronization is enabled. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

IncrementalCallbackStatus

string

The incremental callback status, which specifies whether to process incremental callback data from the IdP. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

UdSyncScopeConfig

object

The synchronization scope configuration information.

SourceScopes

array

The list of synchronization source nodes.

string

The synchronization source node.

ou_123xxxx

TargetScope

string

The synchronization target node.

ou_123xxxx

UdPullStatus

string

Specifies whether the inbound synchronization feature is supported. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

UdPushConfig

object

The outbound synchronization configuration.

IncrementalCallbackStatus

string

This field is not enabled. Ignore this field.

disabled

UdSyncScopeConfigs

array<object>

The list of synchronization scope configurations.

object

The list of synchronization scope configurations.

SourceScopes

array

The list of synchronization source nodes.

string

The synchronization source node. Enter the organization ID.

ou_123xxxx

TargetScope

string

The synchronization target node.

ou_123xxxx

UdPushStatus

string

Specifies whether the outbound synchronization capability is enabled. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

UpdateTime

integer

The update time. It is a UNIX timestamp in milliseconds.

1726021079000

WeComConfig

object

The WeCom configuration information.

AgentId

string

The ID of the WeCom custom application.

1242350

AuthorizeCallbackDomain

string

The authorization callback domain.

https://example.com/xxxx

CorpId

string

The CorpId of the WeCom custom application.

3562012953454577801

CorpSecret

string

The CorpSecret of the WeCom custom application.

weaseiszjskejskaj12sjeszojxxxx

TrustableDomain

string

The trusted domain.

https://example.com

ContactSecret

string

The WeCom address book secret.

mPLLiWv-_9witxxxEJCpk1xkF5hOgBzpRt4kBkxxxx

LogoUrl

string

The custom logo URL of the identity provider.

https://img.alicdn.com/imgextra/i4/O1CN01lvYwpv1aGowQXDML9_!!6000000003303-0-tps-580-580.jpg

SamlConfig

object

The SAML IdP configuration.

IdPEntityId

string

The entity ID of the IdP.

http://dc.test.com/adfs/services/trust

IdPSsoUrl

string

The logon URL of the IdP.

https://dc.test.com/adfs/ls/

Certificates

array<object>

The list of IdP signing certificates.

array<object>

The certificate information.

Content

string

The certificate content.

-----BEGIN CERTIFICATE----- MIIC0jCCAbqgAwIBAgIQXXXXX -----END CERTIFICATE-----

CertificateMetadata

object

The certificate metadata.

NotBefore

integer

The time before which the certificate is not valid.

1672531200000

NotAfter

integer

The time after which the certificate is not valid.

1704067200000

RequireRequestSigned

boolean

Specifies whether requests are required to be signed.

true

BindingMethod

string

The binding method.

Valid values:

  • HTTP-POST :

    HTTP POST form binding.

  • HTTP-REDIRECT :

    HTTP redirect binding.

HTTP-REDIRECT

MaxClockSkew

integer

The maximum clock skew.

180

WantResponseSigned

boolean

Specifies whether the external IdP is required to sign the response.

true

WantAssertionsSigned

boolean

Specifies whether the external IdP is required to sign the assertion.

true

EndpointMetadata

object

The endpoint metadata.

SamlEntityId

string

The SAML entity ID.

https://9test.aliyunidaas.com/login/saml2/idp_nhlraxfiwsx7w7zp26qzyoxxxx/meta

SamlAcsEndpoint

string

The SAML ACS endpoint.

https://9test.aliyunidaas.com/login/saml2/idp_nhlraxfiwsx7w7zp26qzyoxxxx/acs

SamlMetaEndpoint

string

The SAML metadata endpoint.

https://9test.aliyunidaas.com/login/saml2/idp_nhlraxfiwsx7w7zp26qzyoxxxx/meta

RequestId

string

The request ID.

0441BD79-92F3-53AA-8657-F8CE4A2B912A

Examples

Success response

JSON format

{
  "IdentityProviderDetail": {
    "AdvancedStatus": "disabled",
    "AuthnSourceSupplier": "urn:alibaba:idaas:idp:bytedance:lark",
    "AuthnSourceType": "urn:alibaba:idaas:authntype:oidc",
    "AuthnStatus": "disabled",
    "CreateTime": 1726021079000,
    "Description": "for poc test",
    "DingtalkAppConfig": {
      "AppKey": "41reopmwoy9s",
      "AppSecret": "REOQ6Cl55kriOd8NOBeqWYLKpHR4p6fdZxxxx",
      "CorpId": "3756043633237690761",
      "DingtalkVersion": "public_dingtalk",
      "EncryptKey": "29003eb11d0a28b4802a6f02fb8aa25dff730e2ac26ffd200d",
      "VerificationToken": "5ba9c127a7abe029003eb11d0a28b4802a6f02fb8aa25dff730e2ac26ffd200d",
      "DingtalkLoginVersion": "old_version"
    },
    "DingtalkProvisioningConfig": {
      "AuthedDepartmentIds": [
        {
          "DeptId": "123xxx444",
          "DeptName": "test_department"
        }
      ],
      "AuthedUsers": [
        {
          "Name": "zhangsan",
          "UserId": "130308333929200479"
        }
      ],
      "CorpId": "ding_xxxxx",
      "CorpName": "test_enterprise"
    },
    "IdentityProviderExternalId": "idp_xxxx",
    "IdentityProviderId": "idp_mwpcwnhrimlr2horx7xgg7pp7y",
    "IdentityProviderName": "test",
    "IdentityProviderType": "urn:alibaba:idaas:idp:alibaba:dingtalk:push\n",
    "InstanceId": "idaas_x2df3bak3uwnapqm6xxxx",
    "LarkConfig": {
      "AppId": "cli_a7a99f53a317100c",
      "AppSecret": "REOQ6Cl55kriOd8NOBeqWYLKpHR4p6fdZxxxx",
      "EnterpriseNumber": "FX1231xxxx",
      "EncryptKey": "VkdWw91mdkrjVFr3ObNwefap21dfbZbK",
      "VerificationToken": "VkdWw91mdkrjVFr3ObNwefap21dfbZbK"
    },
    "LastStatusCheckJobResult": "success",
    "LdapConfig": {
      "AdministratorPassword": "123456",
      "AdministratorUsername": "example.com",
      "CertificateFingerprintStatus": "enabled",
      "CertificateFingerprints": [
        "asdsadaasd"
      ],
      "LdapProtocol": "ldap",
      "LdapServerHost": "127.xx.xx.100",
      "LdapServerPort": 389,
      "StartTlsStatus": "enabled"
    },
    "LockReason": "financial",
    "NetworkAccessEndpointId": "nae_mx4vsadfe6govkqkwckxxxx",
    "OidcConfig": {
      "AuthnParam": {
        "AuthnMethod": "client_secret_post",
        "ClientId": "mkv7rgt4d7i4u7zqtzev2mxxxx",
        "ClientSecret": "CSEHDddddddxxxxuxkJEHPveWRXBGqVqRsxxxx"
      },
      "EndpointConfig": {
        "AuthorizationEndpoint": "https://example.com/oauth/authorize",
        "Issuer": "https://example.com/oauth",
        "JwksUri": "https://example.com/oauth/jwks",
        "TokenEndpoint": "https://example.com/oauth/token",
        "UserinfoEndpoint": "https://example.com/oauth/userinfo"
      },
      "GrantScopes": [
        "ou_asdaq1addsxzdq1xxxx"
      ],
      "GrantType": "authorization_code",
      "PkceChallengeMethod": "S256",
      "PkceRequired": true
    },
    "UdPullConfig": {
      "GroupSyncStatus": "disabled",
      "IncrementalCallbackStatus": "disabled",
      "UdSyncScopeConfig": {
        "SourceScopes": [
          "ou_123xxxx"
        ],
        "TargetScope": "ou_123xxxx"
      }
    },
    "UdPullStatus": "disabled",
    "UdPushConfig": {
      "IncrementalCallbackStatus": "disabled",
      "UdSyncScopeConfigs": [
        {
          "SourceScopes": [
            "ou_123xxxx"
          ],
          "TargetScope": "ou_123xxxx"
        }
      ]
    },
    "UdPushStatus": "disabled",
    "UpdateTime": 1726021079000,
    "WeComConfig": {
      "AgentId": "1242350",
      "AuthorizeCallbackDomain": "https://example.com/xxxx",
      "CorpId": "3562012953454577801",
      "CorpSecret": "weaseiszjskejskaj12sjeszojxxxx",
      "TrustableDomain": "https://example.com",
      "ContactSecret": "mPLLiWv-_9witxxxEJCpk1xkF5hOgBzpRt4kBkxxxx"
    },
    "LogoUrl": "https://img.alicdn.com/imgextra/i4/O1CN01lvYwpv1aGowQXDML9_!!6000000003303-0-tps-580-580.jpg",
    "SamlConfig": {
      "IdPEntityId": "http://dc.test.com/adfs/services/trust",
      "IdPSsoUrl": "https://dc.test.com/adfs/ls/",
      "Certificates": [
        {
          "Content": "-----BEGIN CERTIFICATE----- MIIC0jCCAbqgAwIBAgIQXXXXX -----END CERTIFICATE-----",
          "CertificateMetadata": {
            "NotBefore": 1672531200000,
            "NotAfter": 1704067200000
          }
        }
      ],
      "RequireRequestSigned": true,
      "BindingMethod": "HTTP-REDIRECT",
      "MaxClockSkew": 180,
      "WantResponseSigned": true,
      "WantAssertionsSigned": true
    },
    "EndpointMetadata": {
      "SamlEntityId": "https://9test.aliyunidaas.com/login/saml2/idp_nhlraxfiwsx7w7zp26qzyoxxxx/meta",
      "SamlAcsEndpoint": "https://9test.aliyunidaas.com/login/saml2/idp_nhlraxfiwsx7w7zp26qzyoxxxx/acs",
      "SamlMetaEndpoint": "https://9test.aliyunidaas.com/login/saml2/idp_nhlraxfiwsx7w7zp26qzyoxxxx/meta"
    }
  },
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.