CreateIdentityProvider

Updated at:

Creates an 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:CreateIdentityProvider

create

*IdentityProvider

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

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

IdentityProviderName

string

Yes

The name of the identity provider.

test

IdentityProviderType

string

Yes

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

UdPushConfig

object

No

The outbound synchronization configuration.

IncrementalCallbackStatus

string

No

Specifies whether to process incremental callback data from the identity provider (IdP). This field is not enabled. Ignore this field.

disabled

PeriodicSyncStatus

string

No

Specifies whether to periodically verify data differences between EIAM and the identity provider. This field is not enabled. Ignore this field.

disabled

UdSyncScopeConfigs

array<object>

No

The outbound synchronization configuration.

object

No

SourceScopes

array

No

The list of source synchronization nodes.

string

No

The source synchronization node. Enter the organization ID.

ou_lyhyy6p7yf7mdrdiq5xxxx

TargetScope

string

No

The target synchronization node.

ou_lyhyy6p7yf7mdrdiq5xxxx

PeriodicSyncConfig

object

No

The periodic verification configuration.

PeriodicSyncType

string

No

The type.

Valid values:

  • cron :

    cron expression.

  • time :

    time.

cron

PeriodicSyncCron

string

No

The cron expression.

0 45 1 * * ?

PeriodicSyncTimes

array

No

The set of execution time points.

integer

No

The execution time point.

3

UdPullConfig

object

No

The inbound synchronization configuration.

GroupSyncStatus

string

No

Specifies whether to enable group synchronization. Default value: disabled. Valid values:

  • disabled: disabled

  • enabled: enabled

disabled

IncrementalCallbackStatus

string

No

Specifies whether to process incremental callback data from the IdP. Valid values:

  • disabled: disabled

  • enabled: enabled

disabled

PeriodicSyncStatus

string

No

Specifies whether to periodically verify data differences between EIAM and the identity provider. Valid values:

  • disabled: disabled

  • enabled: enabled

disabled

UdSyncScopeConfig

object

No

The synchronization scope configuration.

SourceScopes

array

No

The list of source synchronization nodes.

string

No

The source synchronization node.

ou_lyhyy6p7yf7mdrdiq5xxxx

TargetScope

string

No

The target synchronization node. Enter the IDaaS organization ID.

ou_lyhyy6p7yf7mdrdiq5xxxx

PeriodicSyncConfig

object

No

The periodic verification configuration.

PeriodicSyncType

string

No

The type.

Valid values:

  • cron :

    Scheduled by cron expression.

  • time :

    Scheduled by daily fixed time points.

cron

PeriodicSyncCron

string

No

The cron expression.

0 45 1 * * ?

PeriodicSyncTimes

array

No

The set of execution time points.

integer

No

The execution time point.

3

AuthnConfig

object

No

The authentication configuration.

AuthnStatus

string

No

Specifies whether the corresponding IdP supports authentication. Valid values:

  • disabled: disabled

  • enabled: enabled

enabled

AutoUpdatePasswordStatus

string

No

Specifies whether to support automatic password updates. Valid values:

  • disabled: disabled

  • enabled: enabled

enabled

BindingConfig

object

No

The account binding rule configuration for the OIDC identity provider.

AutoMatchUserProfileExpressions

array<object>

No

The list of rules for automatic account matching.

object

No

ExpressionMappingType

string

No

The type of the expression. Valid values:

  • field: field

  • expression: expression

field

SourceValueExpression

string

No

The expression for retrieving the source attribute value.

idpUser.phoneNumber

TargetField

string

No

The name of the target attribute.

user.username

TargetFieldDescription

string

No

The name of the target attribute.

username

AutoMatchUserStatus

string

No

Specifies whether to enable automatic account matching. Valid values:

  • disabled: disabled

  • enabled: enabled

disabled

MappingBindingStatus

string

No

Specifies whether manual account binding is enabled. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

enabled

DingtalkAppConfig

object

No

The DingTalk configuration information.

AppKey

string

No

The AppKey of the first-party DingTalk application.

Xczngvfemo4e

AppSecret

string

No

The AppSecret of the first-party DingTalk application.

5d405a12a6f84ad4ab05ee09axxxx

CorpId

string

No

The CorpId of the first-party DingTalk application.

307568042478613xxxx

DingtalkVersion

string

No

The DingTalk version. Valid values:

  • public_dingtalk: Standard DingTalk.

  • private_dingtalk: Dedicated DingTalk.

public_dingtalk

EncryptKey

string

No

The EncryptKey of the DingTalk application.

VkdWw91mdkrjVFr3ObNwefap21dfxxxx

VerificationToken

string

No

The VerificationToken of the DingTalk application.

myDingApp_VerifyTokenxxxxx

LdapConfig

object

No

The AD/LDAP configuration information.

AdministratorPassword

string

No

The administrator password.

123456

AdministratorUsername

string

No

The administrator username.

DC=example,DC=com

CertificateFingerprintStatus

string

No

Specifies whether to verify the certificate fingerprint. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

enabled

CertificateFingerprints

array

No

The list of certificate fingerprints.

string

No

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

asdasd2221asdawqeda

GroupMemberAttributeName

string

No

The group member identifier.

member

GroupObjectClass

string

No

The group objectClass.

group

GroupObjectClassCustomFilter

string

No

The custom group filter.

(|(cn=test)(group=test@test.com))

LdapProtocol

string

No

The communication protocol.

ldap

LdapServerHost

string

No

The AD/LDAP server address.

123.xx.xx.89

LdapServerPort

integer

No

The AD/LDAP port number.

636

OrganizationUnitObjectClass

string

No

The organization objectClass.

organizationUnit,top

StartTlsStatus

string

No

Specifies whether StartTLS is enabled. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

enabled

UserLoginIdentifier

string

No

The user logon identifier.

userPrincipalName, mail

UserObjectClass

string

No

The user objectClass.

person,user

UserObjectClassCustomFilter

string

No

The custom user filter.

(|(cn=test)(mail=test@test.com))

PasswordSyncStatus

string

No

Specifies whether password synchronization is enabled.

Valid values:

  • disabled :

    Password synchronization is disabled.

  • enabled :

    Password synchronization is enabled.

enabled

UserRdn

string

No

The user RDN.

cn

OrganizationalUnitRdn

string

No

The organization RDN.

ou

WeComConfig

object

No

The WeCom configuration information.

AgentId

string

No

The AgentId of the custom WeCom application.

278231941749863339

AuthorizeCallbackDomain

string

No

The authorization callback domain.

https://xxx.aliyunidaas.com/xxxx

CorpId

string

No

The CorpId of the custom WeCom application.

3756043633237690761

CorpSecret

string

No

The CorpSecret of the custom WeCom application.

CSEHDddddddxxxxuxkJEHPveWRXBGqVqRsxxxx

TrustableDomain

string

No

The trusted domain.

https://xxx.aliyunidaas.com/

ContactSecret

string

No

The WeCom contacts secret.

mPLLiWv-_9wittxxxEJCpk1xkF5hOgBzpRt4kBkxxx

OidcConfig

object

No

The OIDC IdP configuration.

AuthnParam

object

No

The OIDC client authentication configuration.

AuthnMethod

string

No

The OIDC authentication method. Valid values:

  • client_secret_basic

  • client_secret_post

client_secret_post

ClientId

string

No

The OIDC client ID.

mkv7rgt4d7i4u7zqtzev2mxxxx

ClientSecret

string

No

The OIDC client secret.

CSEHDddddddxxxxuxkJEHPveWRXBGqVqRsxxxx

EndpointConfig

object

No

The OIDC endpoint configuration.

AuthorizationEndpoint

string

No

The OIDC authorization endpoint.

https://example.com/auth/authorize

Issuer

string

No

The OIDC issuer information.

https://example.com/auth

JwksUri

string

No

The OIDC JWKS URL.

https://example.com/auth/jwks

TokenEndpoint

string

No

The OIDC token endpoint.

https://example.com/auth/token

UserinfoEndpoint

string

No

The OIDC userinfo endpoint.

https://example.com/auth/userinfo

GrantScopes

array

No

The collection of OIDC grant scopes.

["openid"]

string

No

The OIDC grant scope, which can be an organization ID or a group ID.

ou_lyhyy6p7yf7mdrdiq5xxxx

GrantType

string

No

The OIDC grant type.

authorization_code

PkceChallengeMethod

string

No

The PKCE algorithm. Valid values:

  • SHA256: S256

  • Plaintext: plain

S256

PkceRequired

boolean

No

Specifies whether to use PKCE in authorization code mode.

true

NetworkAccessEndpointId

string

No

The network endpoint ID.

nae_examplexxxx

AutoCreateUserConfig

object

No

The automatic account creation rule configuration.

AutoCreateUserStatus

string

No

Specifies whether automatic account creation is enabled. Valid values:

  • disabled: Disabled.

  • enabled: Enabled.

disabled

TargetOrganizationalUnitIds

array

No

The collection of target organizational unit IDs.

string

No

The target organizational unit ID.

ou_lyhyy6p7yf7mdrdiq5xxxx

AutoUpdateUserConfig

object

No

The automatic user update rule configuration.

AutoUpdateUserStatus

string

No

Specifies whether automatic user update is enabled. Valid values:

  • Disabled: disabled

  • Enabled: enabled

disabled

LarkConfig

object

No

The Lark configuration information.

AppId

string

No

The AppId of the Lark application.

cli_xxxx

AppSecret

string

No

The secret of the Lark application.

KiiLzh5Dueh4wbLxxxx

EnterpriseNumber

string

No

The Lark enterprise code.

FSX123111xxx

EncryptKey

string

No

The encryptKey of the custom Lark application.

VkdWw91mdkrjVFr3ObNwefap21dfxxxx

VerificationToken

string

No

The verificationToken of the custom Lark application.

feishuVerifyTokenxxxxx

LogoUrl

string

No

The URL of the application logo.

xxxx-image://xxxx_23aqr2ye554csg33dqpch5eu3q/tmp/d17d9adc-a943-45e7-ba0c-2838dddea678

ClientToken

string

No

The client token that is used to ensure the idempotence of the request. You can generate a parameter value on your client to ensure that the value is unique across different requests. The ClientToken parameter supports only ASCII characters. If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request may be different.

clientToken_20250704_Axxxxx

SamlConfig

object

No

The SAML IdP configuration.

IdPEntityId

string

No

The EntityId of the IdP.

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

IdPSsoUrl

string

No

The logon URL of the IdP.

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

Certificates

array<object>

No

The list of certificates for the IdP.

object

No

The certificate information.

Content

string

No

The certificate content.

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

RequireRequestSigned

boolean

No

Specifies whether the request must be signed.

true

BindingMethod

string

No

The binding type.

Valid values:

  • HTTP-POST :

    HTTP POST form binding.

  • HTTP-REDIRECT :

    HTTP redirect binding.

HTTP-REDIRECT

MaxClockSkew

integer

No

The maximum clock skew.

180

WantResponseSigned

boolean

No

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

WantAssertionsSigned

boolean

No

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

Response elements

Element

Type

Description

Example

object

The request parameters.

RequestId

string

The request ID.

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

IdentityProviderId

string

The identity provider ID.

idp_mwpcwnhrimlr2horxXXXX

Examples

Success response

JSON format

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "IdentityProviderId": "idp_mwpcwnhrimlr2horxXXXX"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter.OidcIssuer OidcIssuer format check failed, it must be an address that starts with http or https. OidcIssuer format check failed, it must be an address that starts with http or https.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.