# Retrieve all domains in scope Retrieves all domains (Active Directory and workgroup) in scope. Supports filtering by managed computers, AD type, managed users, and network type. ## Endpoint `GET /dcapi/som/domains` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/som/domains` ### Scope `SOM.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** (`string`, Mandatory): `application/domainsDetails.v1+json` ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/som/domains \ --header 'Accept: application/domainsDetails.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body `application/json` - `resourceID` (`string`): Unique resource identifier of the domain in the system - `name` (`string`): Short display name of the domain (typically the NetBIOS name) - `domainName` (`string`): NetBIOS name of the domain used for authentication and network identification - `adDomainName` (`string`): Fully qualified domain name (FQDN) of the Active Directory domain (e.g., 'corp.example.com') - `isADDomain` (`boolean`): true if this is an Active Directory domain, false if it is a workgroup - `guid` (`string`): Globally unique identifier (GUID) of the domain object in Active Directory - `hasCredentials` (`boolean`): Whether authentication credentials are configured for this domain - `credentialID` (`string`): Identifier of the credential associated with this domain. Fetch details from [List Credentials](https://www.manageengine.com/products/desktop-central/help/api/onpremise/credentials-list-credentials.html) - `credentialUUID` (`string`): Universally unique identifier (UUID) of the credential associated with this domain - `username` (`string`): Username configured for domain access and AD operations - `hasManagedComputers` (`boolean`): Whether there are any managed computers discovered under this domain - `useSSL` (`boolean`): Whether SSL/TLS is used for LDAP communication with the domain controller - `portNumber` (`string`): Port number used for LDAP communication (0 indicates default port) - `dcName` (`string`): Hostname of the domain controller used for AD sync operations - `dnsSuffix` (`string`): DNS suffix of the domain, typically matching the AD FQDN - `syncType` (`string`): Type of domain synchronization: 1 = Direction Connection, 2- Through AD Connector - `syncDetails` (`JSON Object`): Scheduled synchronization configuration including time, frequency, and timezone - `dmDomainID` (`string`): Internal Domain Manager identifier for this domain - `networkType` (`string`): Network type classification: 1- Workgroup, 2- Active Directory, 3 - Entra AD - `adConnectorID` (`string`): Identifier of the AD Connector used for syncing this domain. null when no connector is configured - `oauthMetaID` (`string`): OAuth metadata identifier for Azure AD integration. null when OAuth is not configured - `oauthType` (`string`): Type of OAuth authentication configured (e.g., Azure AD). null when OAuth is not configured ### Possible Response Codes - **200** (`HTTP code`) - **204** (`HTTP code`) ### Sample Response: HTTP 200 Active Directory domain ```json [ { "resourceID": "311", "adDomainName": "ECSOM.CBE.COM", "adConnectorID": null, "syncDetails": { "syncTime": "06:00", "remainingSyncCount": 3, "timeZone": "Asia/Calcutta", "frequency": 24 }, "oauthMetaID": null, "hasManagedComputers": false, "hasCredentials": true, "portNumber": 0, "useSSL": false, "credentialUUID": "5be0e976-d613-46a0-bdc9-5a374fcadf53-1774869636432", "dcName": "som-server-cbe", "dnsSuffix": "ECSOM.CBE.COM", "domainName": "ECSOM", "dmDomainID": "1", "name": "ECSOM", "guid": "fd7b9f4a4dbdb14b916eb513c12e43f9", "credentialID": "1", "isADDomain": true, "oauthType": null, "syncType": 1, "networkType": 2, "username": "Administrator" } ] ``` ### Sample Response: HTTP 204 ```text 204 No Content ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.