Creating and registering an Azure AD (client) ID

Prev Next

To manually create an Azure AD (client) ID, app password/client secret or certificate, and directory (tenant) ID through the Azure portal:

Note

The app registration steps for the Azure portal are subject to change. See the Microsoft documentation on registering an application with Azure AD and API permissions for more information.

  1. Create the app.

    1. In the Azure portal, select +New Registration.

    2. Under Name, enter a name for the application.

    3. Under Supported account types, select Accounts in this organizational directory only (Microsoft only - Single tenant).

    4. Do not enter anything in the Redirect URI (optional) field.

    5. Click Register.

  2. Add the API permissions.

    1. In the left panel, select API Permissions.

    2. Select Add a Permission.

    3. Select Microsoft Graph.

    4. Select Application Permissions.

    5. Add the permissions: Directory.Read.All, Group.Read.All, GroupMember.Read.All, Mail.ReadWrite, User.Read.All, MailboxSettings.Read.

    6. At the top of the permissions table, click Grant Admin Consent for ****, then click yes. A green check mark and "Granted for ****" appear next to each permission.

  3. Add owners for the application. Owners are admins who are able to control the app.

    1. In the left panel, select Owners.

    2. Add the owners.

  4. Upload a certificate or create the application secret.

    1. To upload a certificate, follow the steps listed here (under "Option 1: Upload a certificate").

    2. To create the secret, follow the steps listed here (under "Option 2: Create a new application secret").

      Secret refers to the secret value and not the secret ID.

  5. Copy the application ID and directory ID.

    1. In the left panel, select Overview.

    2. Copy the application (client) ID and directory (tenant) ID.

To authorize the app in the Email Security - Cloudportal using an application secret:

  1. In the Email Security - Cloud authorization portal, paste the app (client) ID, app password/secret, and directory (tenant) ID into their appropriate fields.

    Secret refers to the secret value and not the secret ID.

    ETP_Authorize3.png
  2. Click Save. The authorization status is now "Authorized."

  3. Next to the authorization status, click Validate to validate the app.

    ETP_validateauthorization.png

To authorize the app in the Email Security - Cloudportal using a certificate:

  1. In the Email Security - Cloud authorization portal, paste the app (client) ID and directory (tenant) ID into their appropriate fields.

    ETP_Authorize2.png
  2. Upload the RSA private key file.

  3. Paste the X5T thumbprint into the appropriate field.

    The X5T thumbprint is generated in Azure when the certificate is uploaded.

  4. Select the certificate expiration date.

  5. Click Save. The authorization status is now "Authorized."

  6. Next to the authorization status, click Validate to validate the app.

    Note

    If the required permissions are missing, the authorization is not saved and the missing permissions are listed along with other error details.

If the authorization fails, the following message appears:

ETP_authfailure.png

You can view details by entering the upstream response code at https://login.microsoftonline.com/error. See "Sign in error codes" in the Microsoft documentation for more information.