---
sourceDocument: Yokohama ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/servicenow-platform

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Reset User Password Azure AD activity

# Reset User Password Azure AD activity {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Reset User Password activity changes the named user's Azure Active Directory
password.
The Azure password policy imposes constraints on the complexity, length, and re-use of a
password.

To access this activity in the Workflow Editor, select the
Custom tab, and then navigate to Custom ActivitiesAzure AD. This activity was built with the [REST web service activity template](https://www.servicenow.com/docs/vKkdz2GCYAqrSF1gk41qoQ#t_CreateARESTWebServiceActivity "Use this procedure to create a custom REST web service Orchestration activity.").  
Important:  
The REST message used for this activity must be configured to use [OAuth 2.0](https://www.servicenow.com/docs/access?context=c_OAuthApplications&version=yokohama&pubname=yokohama-platform-security&ft:locale=en-US).

## Input variables

{#r_ResetUserPasswordAzureADActivity__table_xdr_sfd_p5__entry__2}

| Variable | Description |
|-|-|
| user_id | The object ID (GUID) or the user principal name of the target user. An example of a user principal name is someuser@a830edad9050849NDA1.onmicrosoft.com. |
| password | User's Azure AD password. This password must be passed as a workflow input with a type of Password (2 Way Encrypted) and must meet the password policy set in Azure AD. |
| change_password | Control that requires the user to change their password at the next login, if set to true. |
[Table 1. Reset User Password input variables]

{#r_ResetUserPasswordAzureADActivity__table_xdr_sfd_p5}

## Output variables

{#r_ResetUserPasswordAzureADActivity__table_o1b_wfd_p5__entry__2}

| Variable | Description |
|-|-|
| error | Returns the error string from the REST message. If there are no errors, this variable returns a null value. |
| body | Contains a string value representing the output from the REST message. |
| status_code | Contains the status code returned from the Web service. |
[Table 2. Reset User Password output variables]

{#r_ResetUserPasswordAzureADActivity__table_o1b_wfd_p5}

## Conditions

{#r_ResetUserPasswordAzureADActivity__table_ipc_zfd_p5__entry__2}

| Condition | Description |
|-|-|
| Success | Activity reset the named user's password. |
| Failure | Activity failed to reset the named user's password, or the activity failed to connect to Azure AD. |
[Table 3. Reset User Password conditions]

{#r_ResetUserPasswordAzureADActivity__table_ipc_zfd_p5}

*[\>]: and then


