

Questetra BPM Suite provides built-in Auto Steps that integrate with various Microsoft 365 services. To use these, an OAuth2 token must be obtained via an HTTP Authorization Setting. Along the way, you may run into some hurdles that originate on the Microsoft 365 side.
This article explains the procedures and prerequisites common to Auto Steps that integrate with Microsoft 365. For instructions on configuring each individual Auto Step, please refer to the corresponding blog article or modeling element page.
Adding an HTTP Authorization Setting and Obtaining a Token
In the Auto Step’s configuration item “OAuth2 Setting,” select [Set up Setting].
Click [Add], enter a suitable name in the “Name” field, and click [Save]. It’s recommended to use a name such as “Connect with {Microsoft 365 account name}” so you can identify which account the setting is linked to.
Clicking [Get Token] will display the Microsoft 365 account sign-in screen.
Enter the Microsoft 365 account (email address) and password, and sign in. For “Stay signed in?”, either “Yes” or “No” is fine.
Once authentication succeeds, you will be returned to the Questetra screen, and the “Token Status” field will display “o (refresh token).”
If you see a message saying “Admin approval required” and are unable to proceed, please see “When Administrator Consent Is Required” below. If a Microsoft 365 session remains active in your browser, the sign-in screen may not appear, which can result in a token being obtained for an unintended account. Please also see “Be Careful Which Account You Obtain a Token For.”
When Administrator Consent Is Required
When obtaining a token, you may see a message saying “Admin approval required” that prevents you from proceeding. This happens when Microsoft Entra (formerly Azure Active Directory) is configured to restrict general users from granting app access permissions at their own discretion.
- Under Microsoft Entra’s default settings, the permissions that users can consent to on their own are limited to those considered low-impact.
- Permissions requested by automated processes that integrate with Microsoft 365 (the scopes listed in the “Application ID” table) do not fall into this category.
- Since tenant administrators can modify this setting, the specific restrictions vary by tenant; consequently, the same automated process may or may not trigger an “admin approval required” prompt, depending on the tenant.
In this case, please ask your Microsoft Entra administrator to grant consent for the target app. Once the administrator has granted consent once, general users will be able to obtain tokens from then on.
Administrator consent creates a tenant-wide record stating “this app is permitted to use this permission”; it does not issue a token itself. The person who grants consent and the person who obtains the token do not need to be the same individual.
Application ID
When asking an administrator to grant consent, be sure to provide both the display name and the Application ID (Client ID) so the target app can be correctly identified. The [Enterprise Applications] section of the Microsoft Entra admin center lists a large number of apps, so relying on the name alone can lead to mistaking one app for another.
Note that the label of the HTTP Authorization Setting selected in the Auto Step’s “OAuth2 Setting” configuration item does not match the application name shown in Microsoft Entra. The correspondence is as follows.
| HTTP Authorization Setting Label | Display Name in Microsoft Entra | Application ID | Scope |
|---|---|---|---|
| Microsoft 365 Outlook for Business | Questetra BPM Suite with Outlook | 1fe73638-82e2-41e4-80d4-2526e839ee8d | Mail.ReadWrite / offline_access |
| Microsoft 365 OneDrive for Business | Questetra BPM Suite | 05a49362-1657-449e-83db-bf005433c132 | Files.ReadWrite.All / offline_access |
| Microsoft Lists | Questetra BPM Suite with Lists | 5ae6318f-81f8-4eef-bb4c-30976c978c1e | Sites.ReadWrite.All / offline_access |
| Microsoft Teams | Questetra BPM Suite with Teams | bf6e7a2e-7c45-4174-a916-c012f52bd9f0 | ChannelMessage.Send / offline_access |
The [Microsoft 365 Excel for Business] Auto Steps use the [Microsoft 365 OneDrive for Business] HTTP Authorization Setting.
Because display names can be changed within Microsoft Entra, use the Application ID for reliable identification.
Be Careful Which Account You Obtain a Token For
An Auto Step operates on the mailbox or files belonging to the account that obtained the token. For example, [Start: Microsoft 365 Outlook for Business: On Receiving Email] monitors emails arriving at the account that obtained the token.
Caution is needed if a session for a different Microsoft account remains active in your browser. In that case, clicking [Get Token] will not display the sign-in screen, and a token will be obtained for that other account instead. Since neither a consent screen nor an account selection screen appears, this can easily go unnoticed.
To ensure the token is obtained for the intended account, we recommend performing this operation in an incognito (private) browser window.
If an Auto Step is not behaving as expected, check which account’s token it is running under. Opening the [Sign-in logs] for the target app under [Enterprise Applications] in the Microsoft Entra admin center will show you the username that signed in.


