<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
0D54z0000AH7PmWCQVOkta Identity EngineWorkflowsAnswered2024-10-31T16:53:18.000Z2024-10-21T13:02:51.000Z2024-10-31T16:53:18.000Z
  • Tim LaBorn (Workflows)

    @AngeloA.78288 (Customer)​ -- It depends on if there is an attribute holding this information that can be queried by API or not. If the answer is yes then Workflows can automate this use case. Otherwise, no.

     

    In Okta, to the best of my knowledge most/all apps do not have a lastAccessed type attribute. What this means is you could potentially do a System Log look back. The System Log is queryable for the last 90 days. So something like this: eventType | Result | App ID | User ID

     

    eventType eq "user.authentication.sso" and outcome.result eq "SUCCESS" and target.id eq "0oaj0yraqnVwWwFiG5d7" and target.id eq "0uaj0yrasxdDgZjAa5d7"

     

    If the returned results are "not empty" then at least one hit was found within 90 days for that user. You could use something like the above to iterate all of the users in the environment that are assigned the application and remove/disable their access. This would be a "Baseline"

     

    Your "Going forward" however would require you to create/update a custom attribute containing their last login (ISO 8601 format preferred) to that app (or those apps). Then you could create a scheduled flow that queries against the attribute looking for users that are outside of the time range.

     

    So your use case is feasible. There just isn't a real "built-in" method to do it.

    Expand Post
    Selected as Best
  • Tim LaBorn (Workflows)

    @AngeloA.78288 (Customer)​ -- It depends on if there is an attribute holding this information that can be queried by API or not. If the answer is yes then Workflows can automate this use case. Otherwise, no.

     

    In Okta, to the best of my knowledge most/all apps do not have a lastAccessed type attribute. What this means is you could potentially do a System Log look back. The System Log is queryable for the last 90 days. So something like this: eventType | Result | App ID | User ID

     

    eventType eq "user.authentication.sso" and outcome.result eq "SUCCESS" and target.id eq "0oaj0yraqnVwWwFiG5d7" and target.id eq "0uaj0yrasxdDgZjAa5d7"

     

    If the returned results are "not empty" then at least one hit was found within 90 days for that user. You could use something like the above to iterate all of the users in the environment that are assigned the application and remove/disable their access. This would be a "Baseline"

     

    Your "Going forward" however would require you to create/update a custom attribute containing their last login (ISO 8601 format preferred) to that app (or those apps). Then you could create a scheduled flow that queries against the attribute looking for users that are outside of the time range.

     

    So your use case is feasible. There just isn't a real "built-in" method to do it.

    Expand Post
    Selected as Best
This question is closed.
Loading
Can you disable access to specific app if it is not logged into for a set number of days?
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