Apache CloudStack 4.23.0.0 Root Admin API Reference
linkAccountToLdap
Link a cloudstack account to a group or OU in ldap
Request parameters
| Parameter Name | Description | Required |
| account | Name of the account, it will be created if it does not exist | true |
| domainid | The id of the domain that is to contain the linked account. | true |
| ldapdomain | Name of the group or OU in LDAP | true |
| accounttype | Type of the account to auto import. Specify 0 for user and 2 for domain admin | false |
| admin | Domain admin username in LDAP | false |
| roleid | Creates the account under the specified role. | false |
| type | Type of the LDAP name. GROUP or OU, defaults to GROUP | false |
Response Tags
| Response Name | Description |
| accountid | Domain Admin accountId that is created |
| accounttype | Type of the Account to auto import |
| domainid | ID of the Domain which is linked to LDAP |
| ldapdomain | Name of the group or OU in LDAP which is linked to the domain |
| name | Name of the group or OU in LDAP which is linked to the domain |
| type | Type of the name in LDAP which is linked to the domain |