Integrating M365 shared inboxes, writing and reading files from OneDrive or SharePoint with generic users, sending Teams Messages as a Bot, using the Microsoft Graph API in workflows, … – All those use cases require not the user’s token retrieved on Application login, but a token generated for a generic user. Use the ‘OAuth2 (Microsoft EntraID / OAuth client credentials Flow)’ Login Method to configure the required params and simply add it to your endpoints of your Connectors to Microsoft’s services.
Preparation – Setup EntraID
Step 1 – Register Application
Step 2 – Create a secret
Step 3 – Add the API Permissions (e.g. for the Graph API)
Create a new Login Method
Create a new Login Method and select the type ‘OAuth2 (Microsoft EntraID / OAuth client credentials Flow)’
Configure the details
Configure the required details based on your EntraID configuration
Detail | Description |
---|---|
Scopes | Add the required scopes that are neccessary for your Connector Calls |
TenantID | ID of your Microsoft EntraID tenant |
ClientID | Microsoft EntraID client ID |
Client Secret | Microsoft EntraID client secret |
Assign the Login Method to your Connector
After you have created the Login Method, assign it to your connector.
Result
As a result, Simplifier will add the following information in every Connector Call in the HTTP Header
Authorization: Bearer <Your Token>