POST /api/v1/groups/rules

Creates a Group rule to dynamically add Users to the specified Group if they match the condition

Note: Group rules are created with the status set to 'INACTIVE'.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
actions Object No

Defines which users and groups to assign

actions.assignUserToGroups Object No

Contains the groupIds array

actions.assignUserToGroups.groupIds[] Array No

Array of groupIds to which Users are added

name String No

Name of the Group rule

conditions Object No

Defines group rule conditions

conditions.expression Object No

Defines Okta specific group-rules expression

conditions.expression.type String No

Expression type. Only valid value is 'urn:okta:expression:1.0'.

conditions.expression.value String No

Okta expression that would result in a Boolean value

conditions.people Object No

Defines conditions for people in a group rule

conditions.people.groups Object No

Currently not supported

conditions.people.groups.exclude[] Array No

Currently not supported

conditions.people.users Object No

Defines conditions specific to user exclusion

conditions.people.users.exclude[] Array No

Excluded userIds when processing rules

type String No

Possible values:

  • "group_rule"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.