Configuring MS Graph OAuth Provider
Microsoft Graph activities in Infor RPA support these two authorization models:
- Delegated Permissions: User-specific access where the application acts on behalf of a signed-in user.
- Application Permissions: Generic access to resources without requiring a specific user context (recommended for unattended automation).
These pre-requisites are required before you configure MS Graph OAuth Provider:
- Azure Account
Access to an Azure account with permissions to create and manage Azure App registrations. This task is typically managed by the IT Team.
- Permission to register applications in Azure Active Directory
- Global Administrator or Application Administrator role in Azure (required for granting admin consent)
- Microsoft 365 Account
An account with permissions to access emails (current) and other relevant Microsoft Graph resources (future).
- RPA Mastermind
Authentication and Token Management with Azure App to interact with MS Graph resources (related to emails).
- RPA Studio installed.
- SCIM Service
The IFS SCIM (System for Cross-domain Identity Management) process is used for managing RPA user provisioning and synchronization between existing Azure organizations and target systems such as IFS (Infor Federation Service).
The SCIM service is an optional but recommended configuration and is required if the organizations and specific users such as “rpa@acme.com or invoices@acme.com” are intended to be used for RPA flows.
To configure the SCIM service, navigate to .
You can use the SCIM Service option in the menu to enable or disable SCIM accounts. When disabled, the SCIM Service option is not displayed in the menu.
For more information, see https://docs.infor.com/inforos/2024.x/en-us/useradminlib_cloud/default.html?helpcontent=inforospag/mrh1493236771582.html&hl=scim
Configuring MS Graph OAuth Provider includes these steps:
- Azure App Registration
- Log on to the Azure portal (https://portal.azure.com/).
- Navigate to Microsoft Entra admin center.
- Select .
- Click .
- Provide this information:
- Name: The name of the application. For example, GraphAPI-App.
- Supported account type: Typically Accounts in this organizational directory only.
- Click . A new application registration is created.
- Open the newly created application.
- Navigate to Authentication.
- Click .
- Select and configure the required Redirect URI.
- Specify a name for your application.
- Select account or any other appropriate account.
- Specify the Redirect URI.
For detailed instructions on registering an application in Azure, see https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app, the Microsoft documentation.
Note:- The Redirect URI can be copied from the page.
- Note the Application (Client) ID, Directory (Tenant) ID, and generate a Client Secret
- MS Graph Permissions
- Navigate to Azure App registration.
- Click.
- Click .
- Select the appropriate permission type. Possible values:
- Delegated permissions: user required
- Application permissions: user not required
Note: For a complete reference of all Microsoft Graph permissions, see, https://learn.microsoft.com/en-us/graph/permissions-reference.These are the minimum permissions that must be provided for the activities based on the functionality:
- OneDrive activity:
- Files.Read.All: Read files in all site collections
- Files.ReadWrite.All: Read and write files in all site collections
- Sites.Read.All: Read items in all site collections
- Sites.ReadWrite.All: Read and write items in all site collections
- Sites.Selected: Only applicable in case of Application permission. This permission covers Onedrive, Sharepoint and Excel
Note:When using the Sites.Selected permission, you must additionally grant application access to specific SharePoint sites. The Sites.Selected permission alone does not provide access to any sites; the permission only enables the ability to receive site-specific grants. For details on configuring site-level access, see https://devblogs.microsoft.com/microsoft365dev/controlling-app-access-on-specific-sharepoint-site-collections.
- Outlook or Email activities
- Mail.Read: Read mail in all mailboxes
- Mail.ReadWrite: Read and write mail in all mailboxes
- Mail.Send: Send mail as any user
- Mail.Send.Shared: This is required if you are using Delegated permissions and need to work shared or service mailboxes
- Mail.Read.Shared: This is required if you are using Delegated permissions and need to work shared or service mailboxes
- Mail.Read.Write.Shared: This is required if you are using Delegated permissions and need to work shared or service mailboxes
Note: Shared mailbox permissions (Mail.Read.Shared, Mail.ReadWrite.Shared, and Mail.Send.Shared) are required when an RPA process must access a mailbox other than the signed-in user’s mailbox. For example, if the automation retrieves emails from a shared mailbox such as invoices@company.com, the permissions listed above must be configured.When using the Invoke Extension or Get Outlook Graph Emails activity, specify the shared mailbox address in the Account property to enable access to the shared mailbox.
- SharePoint activities
- Sites.Read.All: Read items in all site collections
- Sites.ReadWrite.All: Read and write items in all site collections
- Excel Online activities
- Files.Read.All: Read files in all site collections
- Files.ReadWrite.All: Read and write files in all site collections
- Click .
Note: Administrator consent is mandatory for using application permissions.
All new permissions are listed with the Not Granted status.
- Confirm that a green check mark is displayed for all permissions marked as “Granted for [Your Organization]”.
Note: Administrator consent can only be granted by Global Administrators or Application Administrators. Contact your Azure AD administrator for these permissions.
- Navigate to Certificates & secrets.
- Click .
- Copy and securely store the secret value for use during authentication.
- Specify these details required for integration:
- Client ID
- Tenant ID
- Client Secret
- RPA Mastermind Configuration
Microsoft Graph API can be configured using one of these permission types:
-
When configured with application permissions, the Microsoft Graph API operates independently without requiring user sign-in. Permissions are granted directly to the application at the tenant level, enabling the application to access data based on the permissions assigned. This configuration requires tenant-level authorization. See, Configuring with Application Permissions.
-
When configured with delegated permissions, the Microsoft Graph API operates in context of the authenticated signed-in user. The application accesses Microsoft Graph APIs on behalf of the user. The application performs only the actions that the user is authorized to perform. This configuration requires explicit user authorization. See, Configuring with Delegated Permissions.
On the Authorization page, Microsoft Office 365 is disabled by default for Application Permissions and enabled by default for Delegated Permissions at the tenant level. Enabling Microsoft Office 365 with Application Permissions for a tenant makes the integration available to all users within that tenant. However, Delegated Permissions are granted at the individual user level.
Note: Additionally, you must also authorize the RPA application to perform action on your behalf. See, Authorize user for details -
The RPA platform automatically manages the Microsoft Graph token lifecycle. During process execution, the system checks whether the current access token is approaching expiration and performs an automatic refresh when the expiry is within 10 minutes by calling the RPA Management token refresh endpoint. This approach eliminates the need for periodic reauthorization, as token renewal occurs transparently while the initial authorization remains valid. For delegated permissions, the offline_access scope must be configured to enable automatic token refresh.