Skip to content

Reactivate a user

Request

CORS
OAuth 2.0 scope:
  • okta.users.manage

Reactivates a user.

Perform this operation only on users with a PROVISIONED or RECOVERY status. This operation restarts the activation workflow if for some reason the user activation wasn't completed when using the activationToken from Activate User.

Users that don't have a password must complete the flow by completing the Reset password flow and MFA enrollment steps to transition the user to ACTIVE status.

If sendEmail is false, returns an activation link for the user to set up their account. The activation token can be used to create a custom activation link.

Path
idstringrequired

An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user

Query
sendEmailboolean

Sends an activation email to the user if true

Default:false
curl -i -X POST \
  'https://subdomain.okta.com/api/v1/users/{id}/lifecycle/reactivate?sendEmail=false'

Responses

Success

Bodyapplication/json
activationTokenstringread-only

Token received as part of an activation user request. If a password was set before the user was activated, then user must sign in with their password or the activationToken and not the activation link. More information about using the activationToken to login can be found in the Authentication API.

Example:"XE6wE17zmphl3KqAPFxO"
activationUrlstringread-only

If sendEmail is false, returns an activation link for the user to set up their account. You can use the activation token to create a custom activation link.

Note: The activationUrl varies depending on if you are on a Classic or Identity Engine org.

  • For Identity Engine orgs, the activation link is in this format: https://{yourOktaDomain}/tokens/{activationToken}/verify
  • For Classic orgs, the activation link is in this format: https://{yourOktaDomain}/welcome/{activationToken}
Example:"https://{yourOktaDomain}/tokens/XE6wE17zmphl3KqAPFxO/verify"
Response
{ "activationToken": "XE6wE17zmphl3KqAPFxO", "activationUrl": "https://{yourOktaDomain}/tokens/XE6wE17zmphl3KqAPFxO/verify" }