# Retrieve user accounts on a computer Returns the details of a user account on a computer identified by user ID, including username, domain, account type, password policies, and lock status. ## Endpoint `GET /dcapi/inventory/computers/{resourceID}/user` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/inventory/computers/{resourceID}/user` ### Scope `Inventory.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** (`string`, Mandatory): `application/userInfo.v1+json` #### Path Parameters - **resourceID** (`string`, Mandatory): Resource identifier of the computer. Obtain from the response of the [Get Computers List](https://www.manageengine.com/products/desktop-central/help/api/onpremise/computers-getcomputers.html) API. ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/inventory/computers/{resourceID}/user \ --header 'Accept: application/userInfo.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body — `application/json` `JSON Object` - **userStatus** (`string`): User account status - Active or Disabled - **userDomain** (`string`): Domain or computer name the user belongs to - **passwordExpires** (`string`): Whether the password expires - Yes or No - **isPasswordRequired** (`string`): Whether a password is required - Yes or No - **isLocalAccount** (`string`): Whether this is a local account - Yes or No - **userSidType** (`string`): SID type - User, Group, etc. - **accountType** (`string`): Account type - Normal Account, Temp Duplicate Account, etc. - **userFullName** (`string`): Full name of the user - **userFullNameWithDomain** (`string`): Full name with domain prefix (DOMAIN\Username) - **userName** (`string`): User account name - **userSID** (`string`): Security Identifier (SID) of the user - **userComponentID** (`string`): User component identifier - **description** (`string`): Description of the user account - **isDisabled** (`string`): Whether the account is disabled - Yes or No - **isPasswordChangeable** (`string`): Whether the password can be changed - Yes or No - **isLockedOut** (`string`): Whether the account is locked out - Yes or No #### Sample Response User account details ```json { "isLockedOut": "No", "userStatus": "Active", "accountType": "Normal Account", "userFullName": "--", "description": "Built-in account for administering the computer/domain", "userDomain": "SAMPLE-PC", "userName": "SampleUser", "passwordExpires": "Yes", "isLocalAccount": "Yes", "userComponentID": "1", "isPasswordRequired": "Yes", "userSidType": "User", "userSID": "S-1-5-21-0000000000-0000000000-0000000000-500", "userFullNameWithDomain": "SAMPLE-PC\\SampleUser", "isPasswordChangeable": "Yes", "isDisabled": "No" } ``` ### HTTP Code 401 #### Response Body — `application/json` `JSON Object` - **error_code** (`string`): UAC_UNAUTHORIZED - user lacks the required uem-roles or credentials are missing - **error_description** (`string`): Authentication or authorization failure reason #### Sample Response Missing credentials ```json { "error_description": "Unauthorized access", "error_code": "UAC_UNAUTHORIZED" } ``` ### HTTP Code 404 #### Response Body — `application/json` `JSON Object` - **error_code** (`string`): RESOURCE_NOT_AVAILABLE - the specified resourceID does not exist or is not accessible - **error_description** (`string`): Resource not found message #### Sample Response Resource not found ```json { "error_description": "The specified resource was not found", "error_code": "RESOURCE_NOT_AVAILABLE" } ``` ### HTTP Code 500 #### Response Body — `application/json` `JSON Object` - **error_code** (`string`): INTERNAL_ERROR - unexpected exception in the service layer - **error_description** (`string`): Internal server error message #### Sample Response Server error ```json { "error_description": "Internal server error", "error_code": "INTERNAL_ERROR" } ``` ## Possible Response Codes - **200**: HTTP code - **401**: HTTP code - **404**: HTTP code - **500**: HTTP code ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 120 | **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.