activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

生产力活动

上次更新日期 2025年9月16日

Microsoft Office 365 作用域

UiPath.MicrosoftOffice365.Activities.Office365ApplicationScope

描述

使用 Microsoft 身份平台在 UiPath 和您的 Microsoft 365 应用程序之间建立经过身份验证的连接。此经过身份验证的连接使机器人能够调用 Microsoft Graph API,以代表您读取和写入资源。

Important: Starting with version 2.5.5, you can use the newer Microsoft 365 activities inside the Scope activity. To learn how to use the Integration Service activities with Microsoft 365 Scope, see How to use Microsoft 365 activities without Integration Service connections.

项目兼容性

Windows - Legacy | Windows

配置

Tip: This page explains the authentication parameters available in the Microsoft 365 Scope activity. For more details regarding each authentication option, see the How to connect to Microsoft 365 activities guide.

要开始配置此活动,您必须先选择连接方法。根据所选方法,“属性”面板将显示不同的字段。

  • 连接方法”- 选择要使用的连接方法。 下拉菜单中的可用选项包括:
    • 属性面板”- 在“属性”面板中配置连接详细信息。
    • “资产” - 使用 Orchestrator 凭据资产。 我们建议您使用此选项。

资产连接方法

注意:选择此选项时,通常在“属性”面板中显示的大多数身份验证字段都将隐藏,因为身份验证信息存储在资产中。
  • 连接资产- 浏览 Orchestrator 文件夹以选择资产。 此字段支持IResource变量。 选择“管理资产” 按钮以打开 Orchestrator。 可用资产列表取决于 Studio 和机器人连接到的 Orchestrator。
    • 如果您已在 Orchestrator 中更新资产,请使用加号按钮菜单选择“重新加载资产”。 请注意,如果您在使用 Studio Desktop 时在 Orchestrator 中添加新资产,则无法立即在“作用域”活动中使用该资产。

根据资产中配置的身份验证类型,您还必须在“属性”面板中配置以下可用字段:

身份验证
用户名和密码(无人值守)
  • Username - The username of your Microsoft 365 account. Used for Username and Password authentication method.
  • 密码 - 您的 Microsoft 365 帐户密码。
常见
  • 超时(毫秒)”- 指定最长等待时间(以毫秒为单位),如果超出该时间后引发错误,您将无法完成交互式身份验证(同意对话框)。 此字段仅支持整数和Int32变量。 默认值为 30000 毫秒(30 秒)。
运行时
  • 运行时连接资产- 浏览以选择资产。 此字段可用于为运行时选择不同的资产。 使用加号按钮菜单以选择“相对路径”,然后输入包含连接详细信息的 Orchestrator 资产的完整路径。

属性面板连接方法

注意:选择此选项时,必须在“属性”面板中配置可用的身份验证字段。

首先,配置以下字段:

  • 连接- 从列表中选择一个帐户。 您可以添加、删除连接,以及选择要使用的连接。
  • 身份验证作用域- 请参阅下面的使用身份验证作用域向导部分。
使用身份验证作用域向导
注意:此向导将替换此包的以前版本中提供的“服务”参数。使用交互式令牌身份验证时,可使用“身份验证作用域”向导。

“作用域”活动包含一个通用权限选取器,可提供活动正常运作所需的所有已使用的身份验证作用域的清晰画面。



“Microsoft 365 作用域”活动中包含的所有子活动都会自动检测为必需的作用域。

如果未从“作用域”向导中手动选择任何作用域,则默认情况下会在运行时应用“自动检测”功能,并且无需配置向导。 在运行时选择所有最低要求的作用域。

您也可以在将子活动添加到 Microsoft 365 作用域后,手动添加作用域。

接下来,您必须从“属性”面板中选择“身份验证类型”,并配置首选身份验证方法所需的字段。以下部分列出了每个菜单下的可用字段。

docs image

身份验证

  • Authentication Type - The type of authentication required for your registered application. Select one of the five options: Interactive token, Integrated Windows Authentication (IWA), Username and Password, Application ID and Secret, or Application ID and Certificate. The default value is Interactive Token.
  • 环境 - 环境。可以是 Azure Global 或是与 Azure Global 不同的独特国家云环境。选择以下五个选项之一:“默认”、“全球”、“中国”、“德国”或“美国政府”。默认值为“全球”。
  • Application ID - The unique application (client) ID assigned by the Azure Active Directory when you registered your app during setup. The application (client) ID represents an instance of a Microsoft 365 application.
  • Tenant - The unique directory (tenant) ID assigned by the Azure Active Directory when you registered your app during setup. Required for multi-tenant applications and Integrated Windows Authentication. The directory (tenant) ID can be found in the overview page of your registered application (under the application (client) ID).
  • “连接数据存储位置” - 此为下拉列表,用于指定令牌响应的存储位置。可用的属性值为“本地磁盘”“Orchestrator”“从不存储”

    • 本地磁盘- 连接令牌存储在计算机上的本地文件夹中。 同一个连接可用于同一台计算机上的多个流程。
    • Orchestrator - 连接令牌作为资产存储在 Orchestrator 中的指定文件夹中。 只要同一连接有权访问指定的 Orchestrator 文件夹,就可以在多台计算机上的多个流程中使用。
    • 从不存储- 从不存储连接令牌。
      注意:由于技术限制,O365 存储解决方案与 GSuite 的存储解决方案不同。O365 将所有帐户存储在 Orchestrator 中的单个文件中,而 GSuite 将每个帐户存储一个文件。
  • 连接 Orchestrator 文件夹路径- 执行操作的 Orchestrator 文件夹。如果未启用新式文件夹,请留空。有关更多详细信息,请查看 Orchestrator 指南中的关于文件夹
  • Impersonated User Email Address - The email address of the impersonated user. Used in unattended scenarios for Application ID and Secret and Application ID and Certificate authentication methods.

交互式令牌

Note: This is the same authentication method that Integration Service supports either through the UiPath Public App or the Bring your own app method.

For details, see Interactive token.

  • OAuth 客户端- 指定要使用的应用程序(客户端)。此字段仅支持 OAuthApplication 变量。选择以下选项之一:

应用程序 ID 和证书(无人值守)

  • Base64 证书 - 证书的 Base64 表示形式。

  • 证书密码- 使用证书时可能需要的可选密码, Secure String形式。

Application ID and Secret (Unattended)

For details, see Application ID and Secret.

  • “应用程序密码” - 应用程序用于提供其身份的密码字符串。
  • 安全应用程序密码 - 应用程序(客户端)密码,以 SecureString形式显示。

用户名和密码(无人值守)

For details, see Username and Password.

重要提示: Microsoft 已弃用在线 Exchange 的基本身份验证。 这会影响我们的一些活动,例如 Microsoft Office365 作用域。 我们建议在支持 OAuth 协议的活动中使用该协议。
  • 密码 - 您的 Microsoft 365 帐户密码。
  • 安全密码 - 您的 Microsoft 365 帐户密码,形式为 SecureString
  • 用户名 - 您的 Microsoft 365 帐户的用户名。

常见

  • 超时(毫秒) - 指定最长等待时间(以毫秒为单位),如果超出该时间后交互式身份验证(同意对话框)未完成,便会引发错误。此字段仅支持整数和 Int32 变量。默认值为 30000 毫秒(30 秒)(未显示)。
  • 出错时继续 - 指定即使在当前活动失败的情况下,仍继续执行其余活动。

故障排除

如果您遇到任何身份验证问题,请参阅 故障排除 - 身份验证

此页面有帮助吗?

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