Use the Okta API to expire user passwords
Use the Okta API to expire Okta-sourced user passwords and prompt them to set a new password when they next sign in.
- In the Admin Console, go to Directory >Directory Integrations > Active Directory > Provisioning.
- Click Integration in the Settings list.
- Scroll down and clear the Enable delegated authentication to Active Directory check box.
- Click Save.
- Select Create Okta password (recommended).
- Click Disable AD Authentication.
- In the Settings list, click To App, click Edit, scroll to the Sync Password section, and select Enable.
- Click Save.
- Optional. To exclude specific users from password expiration:
- Click Security > Authentication and select Active Directory Policy.
- Scroll down and click Add Rule.
- Complete these fields:
- Rule Name — Enter a name for the rule.
- Exclude Users — Optional. Identify the users you want excluded from this rule.
- IF User's IP Address is — Optional. Indicate if the rule should apply to an IP address that is inside or outside a specific zone.
- THEN User can — Select change password.
- Click Create Rule.
- Access the expire_password endpoint in the Okta User API and change the tempPassword parameter value to TRUE. See Expire Password in the Okta Developer Documentation.