
DrorZ.21930 (Customer) asked a question.
Hi all,
In the documentation i see the following API to expire a user password by id:
https://developer.okta.com/docs/reference/api/users/*expire-password
My question is, is there any suggested way to expire the password for multiple users at 1 call ?
Currently i think of calling the api asynchronously, providing 1 id each time. There is other option ?

Hello @DrorZ.21930 (Customer)
Thanks for posting.
Bulk password expiration only applies to Okta-managed users, unless the Active Directory Password Reset or LDAP Password Reset feature is enabled. When password reset functionality is enabled, the passwords of users managed with Active Directory or LDAP delegated authentication are also expired. Your Active Directory and LDAP agents will continue to work even if the service account managed by Okta has an expired password.
https://help.okta.com/en/prod/Content/Topics/users-groups-profiles/usgp-expire-all-passwords.htm
In this document you can find how to complete the proces using Okta APIs:
https://help.okta.com/en/prod/Content/Topics/Directory/password-sync-api-expire.htm
Let us know if this helps you.
Daniela Chavarria.
Okta Inc.