Whilst using the UiPath Office365 activity the following error message is displayed: "Microsoft.Identity.Client.MsalUiRequiredException: AADSTS50034: The user account {EmailHidden} does not exist in the {*******} directory. To sign into this application, the account must be added to the directory." How to resolve the error?
When working with Microsoft Office 365 activities, the accounts used to access the MS365 resources must be of type “member”.
If they are of type “Guest”, then this error will be thrown when running the Microsoft Office 365 activities:
Microsoft.Identity.Client.MsalUiRequiredException: AADSTS50034: The user account {EmailHidden } does not exist in the {} directory. To sign into this application, the account must be added to the directory.
Note: {} is a placeholder for the unique string that identifies the directory.
In order to address this, an Azure Administrator would have to modify the type of the account from “Guest” to “Member”.
- Login to portal.azure.com
- Access Microsoft Entra Id > Users
- Identify the user intended to be used in the UiPath automation and change its user type