Use the Okta API to expire user passwords

Use the Okta API to expire Okta-mastered user passwords and prompt them to set a new password when they next sign in.

  1. In the Admin Console, go to Directory > Directory Integrations > Active Directory > Provisioning.
  2. In the SETTINGS list, click Integration.
  3. Scroll down and clear the Enable delegated authentication to Active Directory check box.
  4. Click Save.
  5. Select Create Okta password (recommended).
  6. Click Disable AD Authentication.
  7. In the SETTINGS list, click To App, click Edit, scroll to the Sync Password section and select Enable.
  8. Click Save.
  9. Click Security > Authentication and select Active Directory Policy.
  10. Scroll down and click Add Rule.
  11. 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.
  1. Click Create Rule.
  2. Access the expire_password endpoint in the Okta User API and change the tempPassword parameter value to TRUE. See Get Started with the Okta REST APIs.