在 PowerApps 中共享应用Share an app in PowerApps

虽然可以使用 PowerApps 轻松生成可满足你自己的业务需求的应用,但能够与其他人共享这些应用才是它的真正魅力所在。It’s great to build apps that address your own business needs, but the real magic of PowerApps comes from sharing those apps with others. 在本主题中,你将了解如何与指定用户或安全组共享应用,或与整个组织共享应用。In this topic, you will learn how to share apps with specific users or security groups, or you can share it with your entire organization.

打开共享应用屏幕Open the share app screen

若要共享应用,必须打开 powerapps.com。我们不再支持在 PowerApps Studio 或 PowerApps Mobile 上共享应用。To share an app, you must open powerapps.com. We no longer support sharing apps in PowerApps Studio or PowerApps Mobile.

从 PowerApps Studio 开始From PowerApps Studio

  • 选项 1 - 在“文件”菜单上,单击或点击“共享”。Option 1 - On the File menu, click or tap Share.

    文件和共享

  • 选项 2 - 在“文件”菜单上,单击或点击“打开”,然后单击或点击应用的共享图标。Option 2 - On the File menu, click or tap Open, and then click or tap the share icon for an app.

    省略号和共享

powerapps.com 开始From powerapps.com

  • 在左侧的导航栏中,单击或点击“应用”,然后单击或点击省略号 (...),再单击或点击“共享”。In the left navigation bar, click or tap Apps, click or tap the ellipsis (...), and then click or tap Share.

    门户上的省略号

共享应用Share an app

从此处可通过执行下列步骤来共享应用。From here, you can share an app by following these steps.

  1. 指定 Azure Active Directory 中一个或多个用户或安全组的名称,或指定要与整个组织共享应用。Specify the names of one or more users or security groups in Azure Active Directory, or specify that you want to share the app with your entire organization. 请注意,当向整个组织进行共享时,只能使用用户权限共享。Note you can only share with User permission when sharing to your entire organization.

    在 powerapps.com 中指定用户

  2. 指定权限级别:Specify the level of permissions:

    • 用户:用户或组可以运行应用,但无法共享应用。User: Users or groups can run the app but not share it.
    • 参与者:用户或组可以运行、自定义该应用,并可对其他用户共享自定义版本。Contributor: Users or groups can run the app, customize it, and share the customized version further to other users.

      共享应用门户

  3. 单击或点击“保存”。Click or tap Save.

要更改用户或组的权限,请重复此过程的步骤 1,然后在权限列表中为相应用户或组指定一个不同的选项。To change permissions for a user or a group, repeat step 1 of this procedure, and then specify a different option in the list of permissions for that user or group. 要删除用户或组的所有权限,请单击或点击相应用户或组的 x 图标。To remove all permissions for a user or group, click or tap the x icon for that user or group.

发送电子邮件通知Send email notification

在共享应用时,可选择是否通过电子邮件通知用户或安全组。When you share an app, you can select whether or not to notify users or a security group via email. 如果选择此选项,将发送一封电子邮件来通知用户或安全组。If you choose this option, an email will be sent to notify the user or users or security groups. 该电子邮件包含用于访问应用的链接。The email contains a link with which they can access the app. 如适用,系统将提示用户注册并安装 PowerApps。If appropriate, users are prompted to sign up for and install PowerApps.

请注意,所发送的电子邮件模板各不相同,具体取决于共享应用所用的权限。Please note that different email templates are sent depending on the permission you decide to share the app with. 如果以用户权限共享应用,则电子邮件将包含运行该应用的链接。When you share the app with User permission, the email contains the link to run the app. 如果以参与者权限共享应用,则电子邮件将包含在 PowerApps Studio 中编辑应用,或运行应用的链接。When you share the app with Contributor permission, the email contains the link to edit the app in PowerApps Studio or to run the app.

用户应如何查看我所共享的应用?How do my users see the app I shared?

在与一个或多个用户、安全组共享应用后,他们查看该应用的方式将取决于你共享应用所用的权限。After you share an app with one or more users or security groups, how they can see the app depends on the permission you shared the app with.

如果以用户权限共享应用If you shared app with User permission

如果在应用共享屏幕中选择该复选框,则获得共享应用的人将收到一封电子邮件通知。The people you shared the app with will receive an email notification if you selected that check box in the app sharing screen. 在电子邮件中,他们可以单击或点击链接,在 Dynamics 365 上运行应用。In the email, they can click or tap a link to run the app on Dynamics 365. 我们将在不久之后支持通用链接,这意味着如果你已安装 PowerApps Studio 或 PowerApps Mobile,该应用将在 PowerApps Studio 或 PowerApps Mobile 中打开。Soon we will support universal links, which means if you have PowerApps Studio or PowerApps Mobile installed, the app will open in PowerApps Studio or PowerApps mobile.

用户还可在 Dynamics 365 的 AppSource 中发现应用(例如,如果你未发送电子邮件)。Users can also discover the app in AppSource on Dynamics 365 (for example, if you didn't send email). 阅读更多有关用户如何通过 AppSource 获取应用的内容。Read more on how to users can get apps via AppSource.

如果以参与者权限共享应用If you shared an app with Contributor permission

如果在应用共享屏幕中选择该复选框,则获得共享应用的人将收到一封电子邮件通知。The people you shared the app with will receive an email notification if you selected that check box in the app sharing screen. 在电子邮件中,他们可以通过单击或点击链接直接打开应用,然后在适用于 Web 的 PowerApps Studio 中进行编辑。In the email, they can click or tap a link that opens the app directly for editing using PowerApps Studio for the web. 此外,还有一个链接可用于在 Dynamics 365 上运行应用。There is also a link to run the app on Dynamics 365. 我们将在不久之后支持通用链接,这意味着如果你已安装 PowerApps Studio 或 PowerApps Mobile,该应用将在 PowerApps Studio 或 PowerApps Mobile 中打开。Soon we will support universal links, which means if you have PowerApps Studio or PowerApps mobile installed, the app will open in PowerApps Studio or PowerApps Mobile.

用户还可在 powerapps.com 中发现应用(例如,如果你未发送电子邮件)。Users can also discover the app in powerapps.com (for example, if you didn't send email). 在该主页中,应用创建者可以浏览已创建的所有应用,或浏览以参与者权限共享的应用。This is the home for app creators to browse through all the apps they created or that have been shared with them with Contributor permission. 与之相反,在 Dynamics 365 中,用户可以从 PowerApps 和其他商业应用快速运行应用。In contrast, Dynamics 365 is where users can run apps from PowerApps and other business apps quickly.

其他须知要点Other things to know

  • 若要共享应用,必须将其保存至云,而非本地。To share an app, you must save it to the cloud, not locally.
  • 在共享应用之前,请考虑你要与哪个用户和安全组进行共享,以及它们各种所承担的角色 - 用户还是参与者。Before you share an app, consider which users and security groups you’re going to share it with and what role you want each to have—user or contributor. 如果与某个组共享应用,则该组的现有成员和加入该组的任何人都具有你所指定的权限。If you share an app with a group, existing members of that group and anyone who joins it have the permissions that you specify. 除非是具有访问权限的其他组的成员或者你明确指定权限的人,否则离开该组的任何人都将失去这些权限。Anyone who leaves the group loses those permissions unless they're members of a different group that has access or you specify permissions for them explicitly.
  • 每个组成员具有与整个组相同的应用权限。Every member of a group has the same permissions for an app as the overall group does. 但是,可以为该组的一个或多个成员指定更高的权限,以允许他们具有更高的访问级别。However, you can specify greater permissions for one or more members of that group to allow them greater access. 例如,你能够以用户权限与安全组 A 共享一个应用。For example, you can share an app with security group A with User permission. 安全组 A 的每个成员都能运行该应用。Every member of security group A can run the app. 现在,你与用户 B 共享应用,该用户属于安全组 A,具有参与者权限。Now you share the app with user B, who is part of security group A, with Contributor permission. 用户 B 现在可以编辑应用,同时安全组 A 中的其他成员仅能使用应用。User B now can edit the app while everyone else in security group A can only use the app. 如果对一个或多个组成员指定较少的权限,则他们仍将具有已授予整个组的所有权限。If you specify fewer permissions to one or more members of a group, they'll still have all the permissions that you've granted to the overall group.
  • 你可以与整个组织共享应用,但请考虑清楚是否人人都需要访问你的应用。You can share an app with your entire organization, but think carefully about whether everyone needs access to your app.
  • 请注意,你对共享应用做出的任何更改一经保存,便会与共享对象同步。Be aware that any changes you make to a shared app will flow through to the people you shared it with as soon as you save the changes. 如果你改进应用,便会发现这样非常棒;但如果你删除或大幅改动相关功能,也可能会对其他人造成影响。This can be great if you improve the app, but can also impact others if you remove or significantly change features.
  • 在共享应用前,为应用指定一个有意义的名称和提要,让其他人知道这是一个什么应用,并能在列表中快速找到它。Before you share an app, give it a meaningful name and description, so people know what your app is about and can easily pick it out from a list. 在 PowerApps Studio 的“文件”菜单中,单击或点击“应用设置”,然后输入提要。On the File menu in PowerApps Studio, click or tap App settings, and then enter a description.

    应用提要

应用共享和应用所使用的资源App sharing and the resources the app uses

大多数应用至少依赖于以下资源类型中的一个:Most apps rely on at least one of these types of resources:

  • 到数据源的连接a connection to a data source
  • 本地数据网关an on-premises data gateway
  • 自定义连接器a custom connector
  • Excel 工作簿或其他服务an Excel workbook or other service
  • a flow

用户和参与者需要获得对应用使用的任何数据连接和网关的访问权限。Users and contributors need permissions to any data connections and gateways that the app uses. 虽然应用隐式附带某些权限,但仍必须明确授予其他权限。Some permissions come along implicitly with the app, but others must be explicitly granted. 有关详细信息,请参阅 共享应用资源For more information, see Share app resources.

在共享一个使用 Common Data Service 的应用时,请注意信息栏的指示,它要求必须单独对 Common Data Service 共享运行时权限。When you share an app that uses the Common Data Service, notice the information bar indicating that you must share the runtime permission to the Common Data Service separately. 如果缺少执行此操作的权限,请查看环境管理。阅读更多有关 Common Data Service 的安全性的内容。If you don’t have permission to do this, see your environment admin. Read more about security for the Common Data Service.

共享时的应用资源

不支持哪些功能?What isn't supported?

  • 可共享至安全组,但无法共享至分发组。You can share to a security group but not a distribution group.
  • 可以与组织中的用户共享应用,但无法与其他租户中的用户共享应用。You can share apps with users in your organization but not users in another tenant.
  • 可以共享来自 powerapps.com 的应用,但无法共享来自 PowerApps Studio 的应用。You can share an app from powerapps.com but not from PowerApps Studio. (单击或点击 PowerApps Studio 中的共享图标,打开 powerapps.com)。(Click or tap a share icon in PowerApps Studio to open powerapps.com).
  • 如果对某个应用具有参与者(而非用户)权限,则可以重新共享该应用。You can re-share an app if you have Contributor (not User) permission to that app.