Authentication Policies

List Authentication Policies

Get a list of all authentication policies.

Sample Request

curl https://console.jumpcloud.com/api/v2/authn/policies \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'x-api-key: {API_KEY}'
get/authn/policies

Request

Query parameters

limitinteger

The number of records to return at once. Limited to 100.

skipinteger

The offset into the records to return.

filterstring[]

A filter to apply to the query.

Filter structure: <field>:<operator>:<value>.

field = Populate with a valid field from an endpoint response.

operator = Supported operators are: eq, ne, gt, ge, lt, le, between, search, in. Note: v1 operators differ from v2 operators.

value = Populate with the value you want to search for. Is case sensitive. Supports wild cards.

EX: GET /api/v2/groups?filter=name:eq:Test+Group

sortstring[]

The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.

Headers

x-org-idstring

Organization identifier that can be obtained from console settings.

x-total-countinteger

Response

OK

idstring
namestring
descriptionstring
disabledboolean
monitorOnlyboolean
managedBy'ORGANIZATION' | 'ENTERPRISE' | 'UNKNOWN'

Policy ownership.

orgIdstring

Owning organization object id (hex). Populated on aggregate list rows.

orgNamestring

Live owning organization display name from organization metadata. Populated on aggregate list rows when managedBy is ORGANIZATION.

type'user_portal' | 'application' | 'ldap' | 'admin_portal'
conditionsobject

Conditions may be added to an authentication policy using the following conditional language:

<conditions> ::= <expression>
<expression> ::= <deviceEncrypted> | <deviceManaged> | <ipAddressIn> |
                 <locationIn> | <notExpression> | <allExpression> |
                 <anyExpression>
<deviceEncrypted> ::= { "deviceEncrypted": <boolean> }
<deviceManaged> ::= { "deviceManaged": <boolean> }
<ipAddressIn> ::= { "ipAddressIn": [ <objectId>, ... ] }
<locationIn> ::= { "locationIn": {
                     "countries": [
                       <iso_3166_country_code>, ...
                     ]
                   }
                 }
<notExpression> ::= { "not": <expression> }
<allExpression> ::= { "all": [ <expression>, ... ] }
<anyExpression> ::= { "any": [ <expression>, ... ] }

For example, to add a condition that applies to IP addresses in a given list, the following condition can be added:

{"ipAddressIn": [ <ip_list_object_id> ]}

If you would rather exclude IP addresses in the given lists, the following condition could be added:

{
  "not": {
    "ipAddressIn": [ <ip_list_object_id_1>, <ip_list_object_id_2> ]
  }
}

You may also include more than one condition and choose whether "all" or "any" of them must be met for the policy to apply:

{
  "all": [
    {
      "ipAddressIn": [ <ip_list_object_id>, ... ]
    },
    {
      "deviceManaged": true
    },
    {
      "locationIn": {
        countries: [ <iso_3166_country_code>, ... ]
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.