
JacobD.07175 (Customer) asked a question.
Unsuspend users via API and keep them unsuspended
I have an automation that suspends inactive users after about a year. That runs at midnight each night.
There's a group of a few thousand that I would like to unsuspend because we know those emails are active in another application.
When we unsuspend users, they need to log on by midnight or the automation runs again and suspends them again because they have still not been an active for a year.
Is there a call or two I could run after unsuspend to make the account active for a moment and reset the inactivity clock?

Hello @JacobD.07175 (Customer) Thank you for reacting out to our Community!
You can use the unsuspended users API and you can find the API's in the doc below:
https://developer.okta.com/docs/reference/api/users/#unsuspend-user
However to would need to perform a login with the user account to change the last login date, as the report is done by that attribute. For this you may try this doc:
https://developer.okta.com/docs/reference/api/authn/#authentication-operations
Community members help others by clicking Like or Select as Best on responses. Try it today.
Earn Today: New Okta Community Badges Have Arrived
Ask the Experts: Now Thru 1/31 Okta FastPass Engineering and Product Teams Answer Your Questions