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

# List User Roles

Get a list of user roles for a specified organization unit.

<Note>
  External Documentation

  To learn more, visit the [N-able N-Central documentation](https://developer.n-able.com/n-central/reference/listuserroles).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                                                                                                                                                                                                                                                                                                                           |
  | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Organization Unit ID | The ID of the organization unit. Can be obtained by using the `List Organization Units` action.                                                                                                                                                                                                                                                                                       |
  | Page Number          | The page number to retrieve, counting from `1`.                                                                                                                                                                                                                                                                                                                                       |
  | Page Size            | The maximum number of items to retrieve per page. Set to `-1` to retrieve all items.                                                                                                                                                                                                                                                                                                  |
  | Return All Pages     | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                                                                                                                      |
  | Select               | A filter expression to filter results by in the format of `{property} {operator} {value}`.<br /><br />**For example**:<br />- `name == 'My Resource'` - retrieve all resources with a name of `My Resource`.<br />- `name != 'My Resource'` - retrieve all resources with a name that is not `My Resource`.<br />- `id > 100` - retrieve all resources with an ID greater than `100`. |
  | Sort By              | A property name to sort the results by.                                                                                                                                                                                                                                                                                                                                               |
  | Sort Order           | The order to sort the results by.                                                                                                                                                                                                                                                                                                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"roleId": 1001,
			"roleName": "Default Dashboard Role",
			"roleDescription": "Grants users read-only access to Dashboards, and the ability to view service details.",
			"_extra": {
				"cloneable": true,
				"readonly": true,
				"usernames": [
					"User 1 One",
					"User Server Room",
					"User 2 Two"
				],
				"permissions": [
					"DASHBOARDS_VIEW",
					"SERVICE_VIEW"
				]
			}
		}
	],
	"pageNumber": 0,
	"pageSize": 0,
	"itemCount": 0,
	"totalItems": 0,
	"totalPages": 0,
	"_links": {
		"firstPage": "string",
		"previousPage": "string",
		"nextPage": "string",
		"lastPage": "string"
	},
	"_warning": "string"
}
```

## Workflow Library Example

[List User Roles with N Able N Central and Send Results Via Email](https://library.blinkops.com/workflows/list-user-roles-with-n-able-n-central-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/list-user-roles-with-n-able-n-central-and-send-results-via-email/canvas" />
</div>
