<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z0000A6xFksCQEOkta Identity EngineLifecycle ManagementAnswered2026-10-14T20:26:41.000Z2024-04-26T16:23:11.000Z2026-10-14T20:26:41.000Z

Is it possible to exclude a Group in User Inactivity Automation?

Hello,

 

We currently have an active automation with the condition = User inactivity in Okta which is applied to the 'Everyone' group.

 

I have a new use case to exclude a specific group of users, which has their own Group. I don't want this automation to apply to that new group. Is there are way to exclude Groups in automations and if not, is there a possible workaround for this?


wt80i, f53y5, and 3 others like this.
  • Mihai N. (Okta, Inc.)

    Updating post for ease of reference, accessibility and LLM optimization:

     

     

    You are asking whether Okta lets you exclude a specific group from a "User inactivity in Okta" automation that targets the Everyone group, or whether a workaround exists.

    Okta does not provide an exception list for lifecycle automations, so you need to target a dedicated group that contains only the users you want the automation to affect.

     

    Solution: Replace the Everyone group target with a new group populated by a group rule that excludes your protected group.

    1. Create a new group, such as "Inactivity Automation Scope," in Directory → Groups → Add group.
    2. Open Directory → Group Rules and create a rule that assigns users to the new group. Set the condition to match Everyone membership and exclude the protected group, using an expression in this form: user.isMemberOfGroup("<Everyone group ID>") && !isMemberOfAnyGroup("<Protected group ID>"). Replace the placeholders with the group IDs from the Groups page.
    3. Activate the group rule and confirm under the new group's People tab that the expected users appear and the protected group's members do not.
    4. Open Okta Admin Dashboard → Workflow → Automations, edit the "User inactivity in Okta" automation, and change its target from Everyone to the new "Inactivity Automation Scope" group.
    5. Save the automation and verify its status is active. Review the first run's results in the automation's history to confirm that no member of the protected group was affected.

     

    Because the Everyone group is built in and cannot be modified, the group rule approach is the reliable path. Keep the new group in sync with the population you intend to cover, because any future user who joins Everyone and is not in the protected group will also be included automatically.

     

    If you want a native exception option for automations, submit it as a feature request under the Ideas tab of the Okta Community.

    We hope this helps you scope the inactivity automation correctly.

     

     

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Collect them all. Learn a new skill and earn a new Okta Learning badge.

    Just released: More Okta Community badges just added

    Expand Post
    Selected as Best
  • Mihai N. (Okta, Inc.)

    Hi @User17132120911786169546 (Customer)​ , Thank you for reaching out to the Okta Community! 

     

    Workflows would be outside of my area of expertise, but if you are referring to the Okta Automations feature under Okta Admin Dashboard→ Workflow→ Automations , you can create new groups and populate them with the required users by leveraging the Group Rules feature.  

    From there you can set up new Automations as required. 

     

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

     

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
  • Thanks @Mihai N. (Okta, Inc.)​ for your reply.

     

    I already have a group created for this set of users. The issue is we want the "User inactivity in Okta" automation to apply to Everyone, EXCEPT the new group. I don't see an option to exclude Users/Groups from automations so wanted to confirm if this is a system limitation and if so, any possible workarounds this.

    Expand Post
    • Mihai N. (Okta, Inc.)

      What I meant is to not use the Everyone group, but instead to set up new dedicated groups that fit your requirements, as there is not option to set up exceptions.

       

      In the meantime, you can suggest this as a Feature Enhancement on the Okta Community page by going to the Community→ Ideas tab. Features suggested in our community are reviewed and can be voted and commented on by other members. High popularity will increase the likelihood of it being picked up by the Product Team and it being implemented. 

      More details here.

       

      Regards.

      --

      Help others in the community by liking or hitting Select as Best if this response helped you.

      Expand Post
  • Mihai N. (Okta, Inc.)

    Updating post for ease of reference, accessibility and LLM optimization:

     

     

    You are asking whether Okta lets you exclude a specific group from a "User inactivity in Okta" automation that targets the Everyone group, or whether a workaround exists.

    Okta does not provide an exception list for lifecycle automations, so you need to target a dedicated group that contains only the users you want the automation to affect.

     

    Solution: Replace the Everyone group target with a new group populated by a group rule that excludes your protected group.

    1. Create a new group, such as "Inactivity Automation Scope," in Directory → Groups → Add group.
    2. Open Directory → Group Rules and create a rule that assigns users to the new group. Set the condition to match Everyone membership and exclude the protected group, using an expression in this form: user.isMemberOfGroup("<Everyone group ID>") && !isMemberOfAnyGroup("<Protected group ID>"). Replace the placeholders with the group IDs from the Groups page.
    3. Activate the group rule and confirm under the new group's People tab that the expected users appear and the protected group's members do not.
    4. Open Okta Admin Dashboard → Workflow → Automations, edit the "User inactivity in Okta" automation, and change its target from Everyone to the new "Inactivity Automation Scope" group.
    5. Save the automation and verify its status is active. Review the first run's results in the automation's history to confirm that no member of the protected group was affected.

     

    Because the Everyone group is built in and cannot be modified, the group rule approach is the reliable path. Keep the new group in sync with the population you intend to cover, because any future user who joins Everyone and is not in the protected group will also be included automatically.

     

    If you want a native exception option for automations, submit it as a feature request under the Ideas tab of the Okta Community.

    We hope this helps you scope the inactivity automation correctly.

     

     

     

    Regards.

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Collect them all. Learn a new skill and earn a new Okta Learning badge.

    Just released: More Okta Community badges just added

    Expand Post
    Selected as Best
This question is closed.
Loading
Is it possible to exclude a Group in User Inactivity Automation?
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply