UiPathTeam.SharePoint.Activities Authentication exception: The sign-in name or password does not match one in the Microsoft account system

Hi @Yap_Derek ,

Just some more info to help you out a bit(we did have various challenges ahead of us to enable O365 package), thus sharing few learnings:

Out of 4 authentication types listed below, only few options turned to be applicable to us(per our internal configurations):

  1. Interactive Token → only applicable for attended users but can be used if your organization’s internal configurations allow.

  2. Integrated Windows authentication → suitable for unattended users but can not be used if MFA(multi-factor authentication) is enabled in an organization.

  3. Username and Password → suitable for unattended users but can not be used if MFA(multi-factor authentication) is enabled in an organization.

  4. Application Id and Secret → suitable for unattended users if MFA is enabled, however this leaves apps exposed to a great extent if not restricted properly. Hence, you may need to go ahead with restricting it as needed thus allowing control over only required sites/mailboxes and their corresponding access levels(read/write/full) which means This ofice365 package would only work for sites/mailboxes that are added in the whitelist(under API permissions Sites.Selected) irrespective of the availability of app id and secret.

So, you would need to check which permissions(delegated/application level) can be enabled per your organization’s configuration.

Below are the links that we had gathered during our research on this package, see if it helps:

https://docs.uipath.com/activities/docs/office365-setup

https://docs.uipath.com/activities/docs/microsoft-office-365-scope
https://docs.uipath.com/activities/docs/about-the-microsoft-office-365-activities-pack

Regards
Sonali

1 Like