This article explains how to exclude certain users from the automations enabled in the organization.
- Group Rules
- Automations
To exclude users from automations, follow and implement the steps below:
- Modify the profile attribute on the service accounts for the Department to be something like Service.
- Create a group called All users except Service Accounts.
- Create a Group Rule using EL expression language to assign all users without that attribute to the group created in step 2:
-
Navigate to Directory and click on Groups.
- Select Rules and click the Add rule button.
- Create the rule while making sure that the expression language is checked and that the correct expression is used:
user.department != "Service".
-
- Save and Activate group rule.
- Edit Automation so it only applies to All users except service accounts group:
- On the Okta Admin Console, navigate to the Workflows tab.
- From the drop-down menu, select Automations.
- Edit or create a new Automation using the Pencil Icon/ Add Automation button.
- Update the Group Membership condition to reflect the group created in step 2: All users except Service Accounts.
- Save the changes and activate the automation.
