Register Your Application in Microsoft Entra ID
To use client credentials with Microsoft Outlook, register an application in Microsoft Entra ID and grant it Microsoft Graph application permissions.
Sign in to Microsoft Entra Admin Center
Sign in to the Microsoft Entra admin center as at least an Application Developer. If you have access to multiple tenants, click the Settings (gear) icon in the top-right corner, then select the desired tenant from the list under Directory + subscription.
Create a New App Registration
Navigate to App registrations by searching from the top search bar and click on New registration.
- Enter a meaningful Name for your app (e.g., StackOne Microsoft Outlook App-Only).
- Under Supported account types, select Single tenant.
- Leave the Redirect URI blank; client credentials does not use a redirect.
- Click Register to create the app registration.
Copy the Application (Client) ID and Directory (Tenant) ID
On the application’s Overview page, copy the Application (client) ID and the Directory (tenant) ID values and store them securely for use later.
Configure Application Permissions
Grant your application Microsoft Graph application permissions. These apply without a signed-in user and always need admin consent.
Open API Permissions
From the left menu under Manage, select API permissions.
Add Microsoft Graph Application Permissions
Click Add a permission, select Microsoft Graph, then select Application permissions. Delegated permissions with the same names are ignored by client credentials, so each permission must show Application in the Type column.
- Search for
MailandMailboxSettings, click expand all, and select the permissions your integration needs. - For full mail access:
Mail.ReadWrite(Read and write mail in all mailboxes) - For sending mail:
Mail.Send(Send mail as any user) - For message rules and mailbox settings:
MailboxSettings.ReadWrite(Read and write all user mailbox settings) - Click Add permissions to save.
Grant Admin Consent
Click Grant admin consent for [Your Organization] and select Yes. Verify that Granted for [Your Organization] appears under the Status column for each permission. If you add or change permissions after connecting the account in StackOne, reconnect the account so it requests a new access token that includes them.
Limit Mailbox Access (Optional)
By default the app can access every mailbox in the tenant. To restrict it to specific mailboxes, an Exchange administrator can use Role Based Access Control for Applications in Exchange Online. Changes can take 30 minutes to 2 hours to apply.
Generate Client Secret
Create a client secret that StackOne uses to request access tokens.
Navigate to Certificates & Secrets
From the left menu under Manage, select Certificates & secrets.
Create a New Client Secret
Under the Client secrets tab, click New client secret, add a Description, select an expiration period and click Add.
Copy the Client Secret Value
Immediately copy the Value of the newly created client secret and store it securely. This value will only be shown once and cannot be retrieved again.
Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions
Next Steps
Webhooks setup
Configure receiving Events for Microsoft Outlook into StackOne.