In this article, we will cover the steps to execute the "Retrieve Send As From Exchange" script and provide a brief overview of its functionality.

Step 1: Go to Settings and select "My Organization".

Step 2: Navigate to the "Admin Read Only" tab.

Step 3: Click on "Execute" where you see "Retrieve Send As From Exchange".

The main purpose of the script is to add a custom role with "Get Recipient" permission to the service accounts. This permission is required to retrieve "SendAs" permission on mailboxes during the import process. If you don't execute this script, the "Send As" permission won't be visible. With the added custom role, you can easily retrieve the permission for all mailboxes and take necessary actions