Set up OAuth 2.0 using client credentials
- Updated: 2024/03/27
To set up OAuth 2.0 to use client credentials, you must register your Azure Active Directory application.
To register your Azure Active Directory application with the Microsoft identity platform, perform the following steps.
Procedure
-
Log in to the Microsoft Azure portal.
Note: Enter your complete email address including the domain (for example, abc@domain.com).
- On the Home page, click View under the Manage Azure Active Directory option.
-
On the Overview page, select App
registrations from the Manage panel and
then click + New registration
.
-
On the Register an application page, enter the
appropriate name in the Name field, then select the
account type and click Register.
Note: You do not need to enter the Redirect URL because it is not required for the Client Credential flow.
- To set the API permission for the application to access the API resources, select the API permissions option under the Manage panel.
-
Click + Add a permission > Microsoft APIs and select Microsoft Graph.
-
Select Application permissions and perform the following
steps:
- Search with Mail in the Select permissions search box and expand the Mail option.
- Select the Mail.ReadWrite and Mail.Send API permissions check boxes.
- Click Add permissions.
- Click Yes to grant permission to use the API.
-
To create a client secret, click Certificates and
secrets option under the Manage
panel.
- Click +New client secret to open the Add a client secret window.
- Enter an appropriate description in the Description field and set the expiry duration.
-
Click Add.
-
Copy and save the Client secret value to a safe location for your
reference. We recommend that you do not share the value with
anyone.
-
After an application is registered, the application is assigned with the
Client ID and Tenant ID. You
can click Copy to clipboard to copy the tenant and the
client IDs.
You can use the Client ID, Tenant ID, and Client secret to establish a connection with a Microsoft 365 Outlook server.Note: If the mailbox is used inside a Loop action, ensure that you register the user who is assigned to perform the automation. For more information , see Manage users and groups assignment to an application.