# Deprovisioned vs Suspended and How to Use API Requests

**URL:** <https://devforum.okta.com/t/deprovisioned-vs-suspended-and-how-to-use-api-requests/18546>\
**Category:** Questions\
**Created:** [December 15, 2021, 7:46am UTC](https://devforum.okta.com/t/deprovisioned-vs-suspended-and-how-to-use-api-requests/18546 "2021-12-15T07:46:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erel.a](https://avatars.discourse-cdn.com/v4/letter/e/d78d45/32.png) [@erel.a](https://devforum.okta.com/u/erel.a)\
**Post date:** [December 15, 2021, 7:46am UTC](https://devforum.okta.com/t/deprovisioned-vs-suspended-and-how-to-use-api-requests/18546/1 "2021-12-15T07:46:49Z")

</div>

My user’s scenario is to create a policy when a user has to renew his activation after an X amount of time. in between, I want to remove the access to login into Okta.

1. I’ve read through the Okta documentation [about user account status](https://help.okta.com/en/prod/Content/Topics/users-groups-profiles/usgp-end-user-states.htm), but I still do not have a clear idea of which one should I use (‘Suspended’ or ‘Deprovisioned’). My intuition says ‘Suspended’ so the user will keep their password once renewed, but there are any other differences between those two I should be aware of?
2. is there a defined policy that I can create to achieve this sort of “deactivation” once the user has passed X amount of time since creation?
3. In addition, I’m migrating a bulk of users, some of them should be added as “deactivated”. Is there a way to do it through an API request?

---

<div class="post-metadata">

**Author:** ![erel.a](https://avatars.discourse-cdn.com/v4/letter/e/d78d45/32.png) [@erel.a](https://devforum.okta.com/u/erel.a)\
**Post date:** [December 21, 2021, 5:32am UTC](https://devforum.okta.com/t/deprovisioned-vs-suspended-and-how-to-use-api-requests/18546/2 "2021-12-21T05:32:06Z")

</div>

Does nobody know the answers to these questions?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 6:04pm UTC](https://devforum.okta.com/t/deprovisioned-vs-suspended-and-how-to-use-api-requests/18546/3 "2024-02-12T18:04:13Z")

</div>

Closed on February 12, 2024, 6:04pm UTC


