mbegan / Okta-PSModule

Okta API Powershell Wrapper Module
Other
102 stars 31 forks source link

Change the bulk users status suspended to deprovisioned #40

Closed Saikishore031 closed 5 years ago

Saikishore031 commented 5 years ago

Hi Friend,

Could you please provide me the powershell script of bulk users changing the status from suspended to deprovisioning.

I can suspend the user with the help of ‘OKTASUSPENDUSERBYID’ but only one user i can suspend😔. So, could you please provide me the powershell script to change the status of bulk users. Please do the needful.

mbegan commented 5 years ago

Take a look at my deleteDeactivatedUsers.ps1 script (and other scripts in that repo) for some examples of how to work through collections of users to perform bulk actions.

It won't do exactly what you are asking but should give you a good idea of how to move forward.