> ## 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

Get the details of a user by its ID.

**Required Scope**: `Read Users`, `Manage users`, `Read All`, or `Manage All`.

<Note>
  External Documentation

  To learn more, visit the [OneLogin documentation](https://developers.onelogin.com/api-docs/2/users/get-user).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description         |
  | --------- | ------------------- |
  | User ID   | The ID of the user. |
</div>

## Example Output

```json theme={"dark"}
{
	"id": 36216766,
	"firstname": "Kelly",
	"lastname": "Slater",
	"username": "kellyslater",
	"email": "kelly@example.com",
	"phone": "+64272001122",
	"company": "WSL",
	"department": "Waves",
	"title": "Surfer",
	"state": 1,
	"status": 3,
	"role_ids": [
		199848,
		272445
	],
	"group_id": null,
	"directory_id": null,
	"trusted_idp_id": null,
	"manager_user_id": null,
	"manager_ad_id": null,
	"external_id": null,
	"samaccountname": null,
	"userprincipalname": null,
	"distinguished_name": null,
	"member_of": null,
	"comment": "",
	"custom_attributes": {
		"employeenumber": null,
		"food": "chicken"
	},
	"invalid_login_attempts": 0,
	"preferred_locale_code": null,
	"activated_at": "2017-12-12T23:59:28.665Z",
	"created_at": "2017-12-12T23:57:56.781Z",
	"updated_at": "2020-07-09T03:08:52.774Z",
	"password_changed_at": "2019-08-22T18:44:26.542Z",
	"invitation_sent_at": null,
	"last_login": "2020-06-03T19:59:21.382Z",
	"locked_until": null
}
```

## Workflow Library Example

[Get User with Onelogin and Send Results Via Email](https://library.blinkops.com/workflows/get-user-with-onelogin-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-with-onelogin-and-send-results-via-email/canvas" />
</div>
