<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
0D54z0000A4Qe3TCQSOkta Identity EngineWorkflowsAnswered2026-02-07T09:02:07.000Z2024-03-29T10:55:19.000Z2024-04-08T09:08:48.000Z

ni1vb (ni1vb) asked a question.

Automation for deactivating inactive users doesn't perform action.

Hello,

We have a problem with automation.

We are testing on our sandbox tenant how the automation works because we'd like to deactivate/delete customers in case of inactivity.

 

  • I created 2 days ago a test group and I put a test user inside
  • then I set an automation for deactivating users members of the group who were inactive for at least 1 day, as you can see in the screenshot.
  • I activated the automation to run 2 mins after the configuration
  • Nothing happened and the user was still Active

 

Image is not available

 

I ve tried in both ways, with one time process or a daily process, waiting for the next day at configured time, but same result.

 

Any idea how to solve?

Thanks a lot in advance for your help


  • User16594883467582706479 (Customer Support Online Experience)

    Hi, @ni1vb (ni1vb)​ 

     

    Thank you for posting on our Community page!

     

    The user inactivity login is based on when the user last logged into Okta.

     

    https://help.okta.com/en-us/content/topics/automation-hooks/add-automations.htm

    https://support.okta.com/help/s/article/When-And-Where-Do-Automations-Apply?language=en_US

     

     

    Thank you for reaching out to our Community and have a great day!

     

    --

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

    Expand Post
  • ni1vb (ni1vb)

    Hi,

    Thanks for your answer.

    Yes, but it doesn't work. Do you mean the customer should have logged in at least once, otherwise it won't work?

    • User16594883467582706479 (Customer Support Online Experience)

      Hi, @ni1vb (ni1vb)​ 

       

      Thank you for posting on our Community page!

       

      That’s the thing, the user needs to be active first in order to be deactivated.

       

      I suggest opening a case with Support so they can take a more in depth look at the use case.

       

       

      Thank you for reaching out to our Community and have a great day!

       

      --

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

      Expand Post
      • ni1vb (ni1vb)

        Hi again, just to be clear: the user is active on Okta but never logged in

      • User16594883467582706479 (Customer Support Online Experience)

        Yes, I'm sorry I was not clearer: the user needs to have been logged in so a lastLogin date is attributed to them.

      • ni1vb (ni1vb)

        Got it, thanks. I will try again in the next days and I ll let you know.

  • ni1vb (ni1vb)

    Hi @User16594883467582706479 (Customer Support Online Experience)​ ,

    I tried to login and then setup an automation for deleting the inactive user after 1 day and it worked.

    Now I'm wondering: is there a way to delete also users who were created N days ago BUT never logged in?

     

    Thanks a lot again for your help

    MIrco

    Expand Post
This question is closed.
Loading
Automation for deactivating inactive users doesn't perform action.