Skip to main content
POST
Create Access Policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

The name of the access policy.

business_justification
string
required

Explanation for why this policy exists.

Maximum string length: 500
apps
AccessPolicyAppInput · object[]
required

The apps granted by this access policy.

Minimum array length: 1
status
enum<string> | null

The status of the access policy, draft or published. Defaults to draft.

Available options:
draft,
published
is_enabled
boolean | null

Whether the access policy is enabled. Defaults to false when supported.

access_condition
object | null

The Lumos Condition object determining which identities qualify for this policy. Required unless is_everyone_condition is true. This is a recursive JSON structure that allows you to define complex rules for filtering and matching identities using operators like equals, in, and, or, and not. For more information, see the Lumos Conditions documentation.

is_everyone_condition
boolean
default:false

Whether the access policy applies to everyone. Send true without access_condition, or false (the default) with one; sending both returns 400, unless access_condition is the everyone condition a read returns.

Response

Successful Response

The full representation of an access policy returned by the V1 API.

name
string
required

The name of the access policy.

business_justification
string
required

Explanation for why this policy exists.

Maximum string length: 500
id
string
required

The unique ID of the access policy.

status
enum<string>
required

The status of the access policy.

Available options:
draft,
published
is_enabled
boolean
required

Whether the access policy is enabled.

apps
AccessPolicyAppOutput · object[]
required

The apps and entitlements granted by this access policy.

access_condition
object
required

The Lumos Condition object determining which identities qualify for this policy. For more information, see the Lumos Conditions documentation.

is_everyone_condition
boolean
required
read-only

True when the policy applies to everyone in your organization. In that case, access_condition holds the condition Lumos uses to match everyone.

owners
OwnersOutput · object | null

The users and groups that own this access policy. Returned only with expand=owners, owners.users, or owners.groups.