---
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


---

# Enable Mailbox activity

# Enable Mailbox activity {#ariaid-title1}

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

The Enable Mailbox activity creates a new mailbox for an existing Active Directory
user.
This activity implements the Microsoft Exchange [Enable-Mailbox](https://technet.microsoft.com/en-us/library/aa998251(v=exchg.160).aspx) command.  
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom ActivitiesExchangeMailbox.  
Note:  
This activity replaces an Exchange activity by the same name available in releases prior to Geneva. If you have a workflow created in a previous version that uses the deprecated activity, your workflow will continue to work normally after upgrading to Geneva. However, all new workflows must use the custom version of this activity. This activity was built with the [PowerShell activity designer](https://www.servicenow.com/docs/ZdvXEMfKTLrIRE7qWAJFmA "PowerShell activities are configured to return data to a workflow from a host using Microsoft PowerShell."), which gives workflow administrators the ability to store input and output variables in the [databus](https://www.servicenow.com/docs/PrNTwrqX9mIH_QHC_03Elg#t_ReuseDataInTheActivityDesigner "The Data tab in the Workflow Editor lists all custom activities used in the current workflow that produce data and displays that data for reuse in other custom activities.").

## Input variables

{#r_EnableMailboxActivity__table_kqx_pcv_qt__entry__2}

| Variable | Description |
|-|-|
| hostname | The hostname of the Exchange server with which the activity interacts. Do not enter an IP address in this variable. |
| domain | The name of the Exchange server's assigned domain. |
| user | Active Directory user who's mailbox should be enabled. The activity passes this value to Exchange as the Identity Exchange variable. |
| parameters | Optional parameters to pass to the Exchange server written in JavaScript Object Notation (JSON). Exchange activities cannot pass parameters that reference an object, such as a PSCredential object. Plain text is automatically converted to SecureString objects for parameters that require that data type. Attempting to save an activity that specifies duplicate parameters, including parameters from activity variables, or incorrectly formatted JSON causes a warning message to appear. Note: When passing a switch parameter, such as ForceUpgrade, you must use the format "parameter":"true". |
[Table 1. Enable Mailbox input variables]

{#r_EnableMailboxActivity__table_kqx_pcv_qt}

## Output variables

{#r_EnableMailboxActivity__table_hdg_scv_qt__entry__2}

| Variable | Description |
|-|-|
| result | Either success or failure. |
| error | Error message if the operation fails. |
[Table 2. Enable Mailbox output variables]

{#r_EnableMailboxActivity__table_hdg_scv_qt}

## Conditions

{#r_EnableMailboxActivity__table_s4r_tcv_qt__entry__2}

| Condition | Description |
|-|-|
| Success | The activity succeeded in creating a new mailbox for the specified user. |
| Failure | The activity failed to create a new mailbox for the specified user. |
[Table 3. Enable Mailbox conditions]

{#r_EnableMailboxActivity__table_s4r_tcv_qt}

*[\>]: and then


