---
title: Search users by GUID
slug: cps-guide/mdm-epmm/search-users-by-guid
createdAt: 2026-10-06T07:45:20.786Z
---

This call searches for users by GUID. See [User](docId\:DK5wUaGcE74hME-EUyNkR). This call returns custom LDAP attributes along with other user information, unless issued with the **fields="ldapStandardAttributes"** parameter, which adds LDAP standard attributes to the response.

## HTTP Method

GET

## Request URI

/msa/v1/cps/user?guid=\<string>\&fields="ldapStandardAttributes"

## Request parameters

| Parameter                       | Description                                                                                                                                                                                                                                    | Sample Value                         |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| guid                            | **Parameter Type:** Query<br />**Data Type:** String                                                                                                                                                                                           | dd8b7006-2780-49c1-9b03-f85aa57c9da4 |
| fields="ldapStandardAttributes" | **Optional**<br />**Parameter Type:** Query<br />**Data Type:** String<br />If this parameter is included, the return includes the following standard LDAP attributes:<br />- distinguishedName<br />- samAccountName<br />- userPrincipalName | fields="ldapStandardAttributes"      |

## Response fields

A list of users.

See [List of identifiers](docId:0FgXpF4sPOcu6M7eESvy1) and [User](docId\:DK5wUaGcE74hME-EUyNkR).

## Example responses

### Local accountSource

```javascript
{
  "searchResults": [
    {
      "enabled": true,
      "createdAt": 1580812767902,
      "accountSource": "LOCAL",
      "displayName": "John Doe",
      "emailAddress": "admin@acme.com",
      "firstName": "John",
      "lastName": "Doe",
      "userId": "admin@acme.com",
      "userUuid": "dd8b7006-2780-49c1-9b03-f85aa57c9da4",
      "guid": "dd8b7006-2780-49c1-9b03-f85aa57c9da4"
    }
  ],
  "results": 1,
  "offset": 0,
  "limit": 50
}
```

### LDAP accountSource with fields="ldapStandardAttributes" parameter included in the call

```javascript
{
  "limit": 50,
  "offset": 0,
  "results": 1,
  "searchResults": [
    {
      "accountSource": "LDAP",
      "createdAt": 1500444347689,
      "displayName": "Fred A",
      "emailAddress": "Freda@auto8.mobileiron.com",
      "enabled": true,
      "firstName": "Fred",
      "ldapCustomAttributes": {
        "lastlogontimestamp": "131516814255658414",
        "mailnickname": "Fred",
        "mdbusedefaults": "TRUE",
        "msexchmailboxguid": "k\ufffd\ufffdVt\ufffdN\ufffd\ufffdS)\u289e=",
        "msexchrecipientdisplaytype": "1073741824",
        "msexchwhenmailboxcreated": "20140407185418.0Z"
      },
      "ldapStandardAttributes": {
        "distinguishedName": "foo",
        "samAccountName": "bar",
        "userPrincipalName": "baz"
      }
      "userId": "Freda@auto8.mobileiron.com",
      "userUuid": "a3343fd0-c1f2-424f-a993-83b951c94246",
      "guid": "dd8b7006-2780-49c1-9b03-f85aa57c9da4"
    }
  ]
}
```
