A few weeks before, I was required to share the Power Apps application with Microsoft 365 Groups, but I faced an issue while sharing the application: the group name did not show up. After researching, I found a way to share the application with Microsoft 365 groups.
In this tutorial, we’ll see how to share Canvas app with a Microsoft 365 Group in Power Apps.
Share Canvas App With a Microsoft 365 Group in Power Apps
We can share the Power Apps application with Microsoft 365 Groups by clicking on the Share option for a particular application in the Power Apps platform. If you’re getting the below message while sharing the application, we need to enable the security for the Microsoft 365 group.
We can enable the security for the Microsoft 365 group with Power Automate flow. We’ll see how to allow the group’s security and share the Power Apps application later.
Allow Microsoft 365 Groups to Share the Power Apps Application [Using Power Automate Flow]
1. Go to the Microsoft Azure portal, search for Groups, click on All groups, and Copy the Object ID next to the Microsoft 365 group.
2. Open Power Automate, click on +Create on the left navigation, click on Instant Cloud Flow, manually trigger a flow, and Click on the Create button.
3. Add Initialize variable action to store the Microsoft 365 Group object ID.
- Name = Provide the variable name.
- Type = Choose String from the dropdown.
- Value = Provide the copied Microsoft 365 group ID.
4. Add a Send an HTTP request V2 action to enable the Security of the Microsoft 365 Group.
URI
https://graph.microsoft.com/v1.0/groups/@{variables('Objectid')}
Method
PATCH
Body
{"securityEnabled": true}
Content-Type
application/json
5. Add another Send an HTTP request V2 to get the security-enabled information.
URI
https://graph.microsoft.com/v1.0/groups/
Method
GET
Content-Type
application/json
6. Save the flow and test it manually. Once it runs successfully, try providing the Microsoft 365 group name while Sharing.
To share the Power Application with Microsoft 365 groups, open the Power Apps environment, select the application, click on ellipses(…), and select the Share option.
7. Now provide the Microsoft 365 Group name to display it now. Click on the dropdown and select the permissions like User or Co-owner.
8. Select the group and click on the Share button. You’ll then receive a success message stating that the app has been shared.
This way, we can share the Power Apps application with Microsoft 365 Groups.
I hope you understand how to share the Power Apps application with Microsoft 365 groups. To do so, follow this article. Also, you may like:
- Change the Owner Of A Power Apps App
- 3 Easiest Ways to Concatenate Text Strings in Power Apps
- Disable Power Apps Permissions PopUp Consent Form
- Power Apps twitter connector
- Build multi lingual app in Power Apps
- Rename Variables in Power Apps
I am Bijay a Microsoft MVP (10 times – My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com