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

Get a list of rules defined for an application.

**Required Scope**: `Manage All`.

<Note>
  External Documentation

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

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                |
  | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Actions          | A comma-separated list of actions to filter by. <br /><br />Values formatted as `name:value`. Wildcards (`*`) are supported.<br />  <br />  **Examples:**<br />- Single filter: `set_licenses:123456`<br />- Multiple filters: `set_groups:123456,set_usertype:*`<br />- Wildcard: `*:123456` or `set_userprincipalname:*` |
  | Actions Types    | The actions type to filter by.<br /><br /> \* `builtin` - actions that involve standard attributes.<br /> \* `custom` - actions that involve custom attributes.<br /> \* `none` - no actions are defined.                                                                                                                  |
  | App ID           | The ID of an OneLogin application.                                                                                                                                                                                                                                                                                         |
  | Conditions       | A comma-separated list of conditions to filter by. <br /><br />Values formatted as `name:value`. Wildcards (`*`) are supported.<br /><br />**Examples:**<br />- Single filter: `has_role:123456`<br />- Multiple filters: `has_role:123456,status:1`<br />- Wildcard: `*:123456` or `has_role:*`                           |
  | Conditions Types | The conditions type to filter by.<br /><br />\* `builtin` - conditions that involve standard attributes.<br />\* `custom` - conditions that involve custom attributes.<br />\* `none` - no conditions are defined.                                                                                                         |
  | Enabled          | Select to get enabled rules, otherwise - disabled rules will be returned.                                                                                                                                                                                                                                                  |
</div>

## Example Output

```json theme={"dark"}
[
	{
		"id": 196673,
		"name": "My first rule",
		"match": "all",
		"enabled": true,
		"position": 1,
		"conditions": [
			{
				"source": "last_login",
				"operator": ">",
				"value": "90"
			}
		],
		"actions": [
			{
				"action": "set_status",
				"value": [
					"2"
				]
			}
		]
	}
]
```

## Workflow Library Example

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