Sync Okta user groups on a schedule

Recipe ToolsIdentity ManagementDeveloper ToolAPI Integration

What it does

When a scheduled interval arrives, this automation retrieves user groups from Okta and processes them to identify active or staged users. It tracks deactivated user counts and logs the results so the team has current group membership data.

Who it's for

IT teams who need to monitor Okta user groups on a regular cadence without manual checks.

How teams use this

Monitor group membership changes daily

Run this automation each morning to pull the latest Okta user groups and identify any status changes. The team gets a job report showing active, staged, and deactivated user counts without manual review.

Alert on deactivated user thresholds

Extend this automation to send a Slack notification when the deactivated users count exceeds a set number. That way the team is notified immediately if unexpected deactivations occur.

Sync groups to a downstream system

Add a step after the Rest request to push active user group data to an HR system or directory service. This keeps downstream systems in sync with Okta without manual exports.

How it works

  1. Run on a specified interval. At the scheduled time, this automation starts to retrieve and process Okta user groups for the team.
  2. Retrieve user groups from Okta. Use a custom action in Okta to fetch all user groups and their current membership details for processing.
  3. Send request via Rest. Make a Rest request to process the group data and retrieve additional information needed for the sync.
  4. Filter active and staged users. Loop through each user and check if their status is active or staged, logging results to the job report for audit purposes.
  5. Track deactivated user count. Count users not found in the active or staged groups and update the deactivated users variable for reporting.