> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User By ID

Return user by the corresponding user ID.

<Note>
  External Documentation

  To learn more, visit the [SailPoint IdentityIQ documentation](https://developer.sailpoint.com/docs/api/iiq/get-user-by-id).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                                                                                                                                                                                                                       |
  | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Attributes | The user attributes to include in the response. The query parameter value is a comma-separated list of fields to be returned in the response for each user.<br /><br />The attributes provided will be the only ones returned in the response, with the exception of id, schemas, and meta, which are always returned for a user. |
  | User ID    | The user ID.                                                                                                                                                                                                                                                                                                                      |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "c0b4568a4fe7458c434ee77d1fbt156b",
	"userName": "Mock.User",
	"name": {
		"formatted": "Ms. Barbara J Jensen, III",
		"familyName": "Jensen",
		"givenName": "Barbara"
	},
	"displayName": "Barbara Jensen",
	"userType": "employee",
	"active": true,
	"emails": [
		{
			"type": "work",
			"value": "Barbara.Jensen@example.com",
			"primary": true
		},
		{
			"type": "work",
			"value": "Barbara.Jensen@example.com",
			"primary": true
		}
	],
	"urn:ietf:params:scim:schemas:sailpoint:1.0:User": {
		"accounts": [
			{
				"displayName": "Bob.Smith",
				"value": "c0a7778b7ef71e79817ee74e6a1f0444",
				"$ref": "http://localhost:8080/iiq/scim/v2/Accounts/c0a7778b7ef71e79817ee74e6a1f0444"
			},
			{
				"displayName": "Bob.Smith",
				"value": "c0a7778b7ef71e79817ee74e6a1f0444",
				"$ref": "http://localhost:8080/iiq/scim/v2/Accounts/c0a7778b7ef71e79817ee74e6a1f0444"
			}
		],
		"entitlements": [
			{
				"value": "groupmbr",
				"display": "HelpDesk",
				"type": "Permission",
				"application": "ADMockApp",
				"accountName": "CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com",
				"$ref": "http://localhost:8080/iiq/scim/v2/Entitlements/c0a7777a7f74744d817e74fc12362c67"
			},
			{
				"value": "groupmbr",
				"display": "HelpDesk",
				"type": "Permission",
				"application": "ADMockApp",
				"accountName": "CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com",
				"$ref": "http://localhost:8080/iiq/scim/v2/Entitlements/c0a7777a7f74744d817e74fc12362c67"
			}
		],
		"roles": [
			{
				"value": "detectedRoles",
				"display": "User - IT",
				"type": "it",
				"acquired": "Assigned",
				"application": "Active_Directory",
				"accountName": "CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com",
				"$ref": "http://localhost:8080/iiq/scim/v2/Roles/c0a7777a7f74744d817e74fc12362c67"
			},
			{
				"value": "detectedRoles",
				"display": "User - IT",
				"type": "it",
				"acquired": "Assigned",
				"application": "Active_Directory",
				"accountName": "CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com",
				"$ref": "http://localhost:8080/iiq/scim/v2/Roles/c0a7777a7f74744d817e74fc12362c67"
			}
		],
		"capabilities": [
			"Lorem dolor",
			"aliquip in in"
		],
		"riskScore": 125,
		"isManager": false,
		"administrator": {
			"displayName": "Bob Smith",
			"value": "c0a7777a7f74744d817e74fc12362c67O",
			"$ref": "http://localhost:8080/iiq/scim/v2/Users/c0a7777a7f74744d817e74fc12362c67"
		},
		"softwareVersion": "7.3",
		"empId": "1b2a3c",
		"dn": "cn=Bob Smith,ou=services",
		"region": "Americas",
		"regionOwner": {
			"displayName": "Joe Smith",
			"value": "c0b4568a4fe7458c434ee77d1fbt156b",
			"$ref": "http://localhost:8080/iiq/scim/v2/Users/c0b4568a4fe7458c434ee77d1fbt156b"
		},
		"location": "Singapore",
		"locationOwner": {
			"displayName": "Bob Smith",
			"value": "c0a7778b7ef71e79817ee74e6a1f0444",
			"$ref": "http://localhost:8080/iiq/scim/v2/Users/c0a7778b7ef71e79817ee74e6a1f0444"
		},
		"Department": "Regional Operations",
		"costcenter": [
			"CC01",
			"DD02"
		],
		"jobtitle": "Internal Audit Manager",
		"lastRefresh": "2011-06-25T20:38:45.076Z"
	},
	"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
		"manager": {
			"displayName": "Bob Smith",
			"value": "c7a7347a7fe71e69077ee75f5d1f1237",
			"$ref": "http://localhost:8080/iiq/scim/v2/Users/c7a7347a7fe71e69077ee75f5d1f1237"
		}
	},
	"meta": {
		"created": "2022-02-11T01:34:04.074-05:00",
		"location": "http://localhost:8080/iiq/scim/v2/Users/c0b4568a4fe7458c434ee77d1fbt156b",
		"lastModified": "2022-02-11T01:08:45.866-05:00",
		"version": "W/\"1644561244074\"",
		"resourceType": "User"
	},
	"schemas": [
		"urn:ietf:params:scim:schemas:sailpoint:1.0:User",
		"urn:ietf:params:scim:schemas:core:2.0:User",
		"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
	]
}
```

## Workflow Library Example

[Get User by Id with Sailpoint Identityiq and Send Results Via Email](https://library.blinkops.com/workflows/get-user-by-id-with-sailpoint-identityiq-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-user-by-id-with-sailpoint-identityiq-and-send-results-via-email/canvas" />
</div>
