How to enable EWS at the Exchange Online user (mailbox) level#

Revenue Grid requires EWS to be enabled for users whose mailboxes are connected through EWS. This article explains how to enable EWS for individual users or multiple users in Exchange Online.

If you are configuring EWS access in preparation for Microsoft’s EWS retirement, see Keep Revenue Grid EWS access working in Exchange Online until April 2027 for the complete configuration.

If you have not yet activated EWS at the organization level, see How to enable EWS at the Exchange Online organization (tenant) level.

Enable EWS at the Exchange Online user (mailbox) level#

Depending on how your users are managed, you can enable EWS:

Enable EWS for a specific user#

  1. Connect to Exchange Online PowerShell:

    Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com
    
  2. Enable EWS for the user’s mailbox:

    Set-CASMailbox -Identity user@yourdomain.com -EwsEnabled $true
    
  3. Verify that EWS is enabled:

    Get-CASMailbox -Identity user@yourdomain.com | Select EwsEnabled
    

If EwsEnabled is True, EWS is enabled for the user’s mailbox.

Enable EWS for multiple users from a CSV file#

If you need to activate EWS for a large number of users, you can upload a CSV file containing their email addresses and apply the change in bulk.

  1. Create a CSV file, for example users.csv, with the following format:

    UserPrincipalName
    user1@yourdomain.com
    user2@yourdomain.com
    
  2. Connect to Exchange Online PowerShell:

    Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com
    
  3. Enable EWS for the users in the CSV file:

    $users = Import-Csv -Path "C:\Path\To\users.csv"
    $users | ForEach-Object { 
        Set-CASMailbox -Identity $_.UserPrincipalName -EwsEnabled $true 
    }
    
  4. Verify the changes:

    $users | ForEach-Object { 
        Get-CASMailbox -Identity $_.UserPrincipalName | 
        Select DisplayName, UserPrincipalName, EwsEnabled 
    }
    

Confirm that EwsEnabled is True for all affected users.