Office 365 Activities permission

Hello we have installed UiPath MicrosoftOffice365 newest activities package. Also we have created Azure Application according to instructions. Redirect uri, secret, all API permissions are given, also admin has consented to all of them. When using IntergratedWindowsAuth it works and I am able to use FindFilesAndFolders and CreateFolder activity in Sharepoint. But We must use Office 365 scope where we authenticate via ApplicationAndSecret and it does not work. All variables are created according to dozens of instructions but I am still getting error:

Find Files And Folders: Code: AccessDenied
Message: Either scp or roles claim need to be present in the token.

Please Help!

Hi @NotFranmax

When using ApplicationIdAndSecret authentication, it requires that your Azure Application has all required Graph API Application permissions set, instead of Delegated permissions.

For example, according to de documentation of Find Files and Folders (https://docs.uipath.com/activities/docs/office365-find-files-and-folders) this uses Search for files - Microsoft Graph v1.0 | Microsoft Learn which requires the Application permissions from the screenshot below.

1 Like

Thank You!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.