Disable User Account

Disable a user's Office 365 account.

Unless otherwise indicated, field types are text.

Required fields are indicated by a red asterisk on the Action Card.


  • User

    • Id or Username: The user ID or username of the Office 365 user. This is the user's User Principal Name (UPN). A UPN is formed by taking the username and domain and combining them with the @ separator, for example, john.doe@somedomain.com. This could be the user's email address, but this is not true in all cases.


  • Output

    • Status Code (number): The status code returned by the API. A value of 204 indicates the user's account was disabled successfully.

Related topics

Office 365 Admin connector

About the elements of Okta Workflows

Office 365 Management APIs overview