Apache CloudStack 4.20.0.0 Root Admin API Reference

linkAccountToLdap

link a cloudstack account to a group or OU in ldap

Request parameters

Parameter NameDescriptionRequired
accountname of the account, it will be created if it does not existtrue
domainidThe id of the domain that is to contain the linked account.true
ldapdomainname of the group or OU in LDAPtrue
accounttypeType of the account to auto import. Specify 0 for user and 2 for domain adminfalse
admindomain admin username in LDAP false
roleidCreates the account under the specified role.false
typetype of the ldap name. GROUP or OU, defaults to GROUPfalse

Response Tags

Response NameDescription
accountidDomain Admin accountId that is created
accounttypeType of the account to auto import
domainidid of the Domain which is linked to LDAP
ldapdomainname of the group or OU in LDAP which is linked to the domain
namename of the group or OU in LDAP which is linked to the domain
typetype of the name in LDAP which is linked to the domain