activities
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
UiPath logo, featuring letters U and I in white
生产力活动
Last updated 2024年11月21日

AADSTS65001:用户或管理员未同意使用该应用程序

问题

When using Username and Password authentication with Microsoft 365 Scope, you encounter the following error: "AADSTS65001: The user or administrator has not consented to use the application with ID <appID> named <appName>. Send an interactive authorization request for this user and resource."

This error can occur when:
  1. The application doesn't have any permissions configured.
  2. The admin has not granted consent for the whole organization.
  3. The admin granted consent, but specific Azure settings force the admin to send the authorization request and consent via the desktop app (e.g. UiPath).

解决方案

For root causes 1 and 2:

  1. Ask your Azure admin to access and edit the app registration.

  2. Add the necessary permissions.

  3. Grant consent on behalf of the whole organization. For more information, see Grant tenant-wide admin consent to an application.

For root cause 3: Even if the admin provided consent from the app registration, due to particular settings on the consent workflow, Azure is still preventing the authentication. To fix the issue:

  1. Configure the Microsoft 365 Scope activity to perform an Interactive token authentication.

  2. Run and debug the process.

  3. When the consent prompt appears, have an admin log in.

  4. As admin, grant consent on behalf of the organization. This is a one-time requirement per app registration. You can then change the authentication type back to Username and Password.

  • 问题
  • 解决方案

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。