Returns a list of policies according to type.

External Documentation

To learn more, visit the Okta documentation.

Parameters

ParameterDescription
Policy TypeThe type of policies to be returned.

Example Output

{
	"type": "PASSWORD",
	"id": "policyId",
	"status": "ACTIVE",
	"name": "Policy name",
	"description": "Policy description",
	"priority": 1,
	"system": true,
	"created": "createdDate",
	"lastUpdated": "lastUpdated",
	"conditions": {
		"people": {
			"groups": {
				"include": [
					"groupId"
				]
			}
		},
		"authProvider": {
			"provider": "provider"
		}
	},
	"settings": {
		"password": {
			"complexity": {
				"minLength": 8,
				"minLowerCase": 1,
				"minUpperCase": 1,
				"minNumber": null,
				"minSymbol": 0,
				"excludeUsername": true,
				"dictionary": {
					"common": {
						"exclude": false
					}
				},
				"excludeAttributes": []
			},
			"age": {
				"maxAgeDays": 0,
				"expireWarnDays": 0,
				"minAgeMinutes": 0,
				"historyCount": 4
			},
			"lockout": {
				"maxAttempts": 0,
				"autoUnlockMinutes": 0,
				"userLockoutNotificationChannels": [],
				"showLockoutFailures": false
			}
		},
		"recovery": {
			"factors": {
				"recovery_question": {
					"status": "ACTIVE",
					"properties": {
						"complexity": {
							"complexity": 4
						}
					}
				},
				"okta_email": {
					"status": "ACTIVE",
					"properties": {
						"recoveryToken": {
							"tokenLifetimeMinutes": 10080
						}
					}
				},
				"okta_sms": {
					"status": "INACTIVE"
				},
				"okta_call": {
					"status": "INACTIVE"
				}
			}
		},
		"delegation": {
			"options": {
				"skipUnlock": false
			}
		}
	},
	"_links": {
		"self": {
			"href": "https://{yourOktaDomain}/api/v1/policies/{policyId}",
			"hints": {
				"allow": [
					"GET",
					"PUT"
				]
			}
		},
		"rules": {
			"href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules",
			"hints": {
				"allow": [
					"POST",
					"GET"
				]
			}
		}
	}
}

Workflow Library Example

Report on Password Policy Gaps in Okta

Preview this Workflow on desktop