Assistance Needed: AADSTS700016 Error When Connecting UiPath to MS Office 365

I’m experiencing issues in UiPath while trying to establish a connection to MS Office 365. The error message I received is as follows:

“AADSTS700016: The application with the identifier ‘sandeep.shrivas’ was not found in the directory ‘Directory name’. This may occur if the application has not been installed by the tenant administrator or if no user in the tenant has consented to it. Additionally, it’s possible that the authentication request was sent to the incorrect tenant.”

For context, I am using Office 2019

Is excel installed in the machine and user from which you are testing?

If not - try after installing excel package

@sandeep.shrivas,

How you are connecting? Is it integration services?

Hi @sandeep.shrivas

It seems like that the application Id is not registered in Azure AD. Since you’re using Office 2019 (not Office 365), direct integration with Office 365 services via UiPath won’t work without proper Azure AD registration.

Follow below link,

If you found helpful, mark as a solution
Thanks

@sandeep.shrivas

Generally this issue occurs when client id and secret are interchanged or provided wrong

looks like you are using integration services and is it a personal account? then it might not support as well

cheers

Hi @sandeep.shrivas

Please refer below the possible reasons for this error code per MS documentation:

Could you please check your registration in azure and cross verify all the parameters(app id, secret, tenant, auth type) you are using to make a connection?

Yes I am using Integration Services.