Skip to main content
Get a list of rules defined for an application. Required Scope: Manage All.
External DocumentationTo learn more, visit the OneLogin documentation.

Parameters

ParameterDescription
ActionsA comma-separated list of actions to filter by.

Values formatted as name:value. Wildcards (*) are supported.

Examples:
- Single filter: set_licenses:123456
- Multiple filters: set_groups:123456,set_usertype:*
- Wildcard: *:123456 or set_userprincipalname:*
Actions TypesThe actions type to filter by.

* builtin - actions that involve standard attributes.
* custom - actions that involve custom attributes.
* none - no actions are defined.
App IDThe ID of an OneLogin application.
ConditionsA comma-separated list of conditions to filter by.

Values formatted as name:value. Wildcards (*) are supported.

Examples:
- Single filter: has_role:123456
- Multiple filters: has_role:123456,status:1
- Wildcard: *:123456 or has_role:*
Conditions TypesThe conditions type to filter by.

* builtin - conditions that involve standard attributes.
* custom - conditions that involve custom attributes.
* none - no conditions are defined.
EnabledSelect to get enabled rules, otherwise - disabled rules will be returned.

Example Output

[
	{
		"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
Workflow LibraryPreview this Workflow on desktop