Skip to content

Power Apps

Share Canvas App With A Microsoft 365 Group In Power Apps

Share Canvas App With A Microsoft 365 Group In Power Apps Posted by - Matthew Devaney on - April 28, 2024 24 Comments You can share a canvas app with a Micro...

Matthew Devaney
Published
Reading time
4 min read

Before you start

Is this guide for you?

Best entry point
Power Apps
Time investment
4 min read

Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/share-canvas-app-with-a-microsoft-365-group-in-power-apps/. Author: Matthew Devaney.

Share Canvas App With A Microsoft 365 Group In Power Apps Posted by - Matthew Devaney on - April 28, 2024 24 Comments

You can share a canvas app with a Microsoft 365 group along with any associated SharePoint lists. This makes granting access to an app quicker & easier. A user assigned to the group will automatically gain access to the app & lists at once. And it reduces errors because there is no chance you will forget to share the lists. In this article I will show you my method to simplify sharing for Sharepoint based Power Apps. Table of Contents Introduction: The Cheque Requests App

Determine The Microsoft 365 Security Group Name

Get The Microsoft 365 Group Object ID From Azure

Enable App Sharing For The Microsoft 365 Group

Run The Power Automate Flow To Enable App Sharing

Share The Canvas App With The Microsoft 365 Group Introduction: The Cheque Requests App

Members of the Wright Construction Company use the Cheque Requests App to submit cheque requests to the Finance Department. When the app is shared with a members of the Finance Department the SharePoint list it uses to store data should also be shared.

The app is located in a Power Platform Environment which does not have a Dataverse database installed.

Determine The Microsoft 365 Security Group Name

SharePoint team sites have an associated Microsoft 365 Group. To share the canvas app with the same Microsoft 365 Group as the SharePoint list it uses, go to the list and select the gear icon at the top. Open the Site Permissions and select Site Members .

The Microsoft 365 Group name will appear at the top of the modal that appears. In this example, the Microsoft 365 Group name is WC Finance Department and it has two members: Matthew Devaney and Mary Baker.

Get The Microsoft 365 Group Object ID From Azure

The next step is to retrieve the Microsoft 365 Group Object Id. The reason we are doing this is to enable the group for app sharing. Login to portal.azure.com and go to the Groups service.

Search for the group name. The object id will appear beside it.

Enable App Sharing For The Microsoft 365 Group

The Microsoft 365 group WC Finance must be enabled for app sharing before we can use it to share the Cheque Request app . If we try to try type the group name in the sharing menu nothing appears.

To do this, open Power Automate and build this flow. It uses the Microsoft 365 Groups – Send an HTTP Request action to update the WC Finance team. It locates the Microsoft 365 group by its ObjectId and then changes the group’s securityEnabled setting to true. Then in the second HTTP request it gets the group details so we can confirm the securityEnabled setting was turned on. Send An HTTP Request V2- PATCH URI

https: //graph.microsoft.com/v1.0/groups/@{variables('varSecurityGroupObjectId')} Code language: JavaScript ( javascript ) Method PATCH Body { "securityEnabled" : true } Code language: JSON / JSON with Comments ( json ) Content-Type application/json Send An HTTP Request V2- GET URI

https: //graph.microsoft.com/v1.0/groups/@{variables('varSecurityGroupObjectId')} Code language: JavaScript ( javascript ) Method GET Content-Type application/json

Run The Power Automate Flow To Enable App Sharing

Execute the flow to update the securityEnabled setting for the Microsoft 365 group. After the flow run we can inspection the HTTP GET Request to see that securityEnabled has a value of true.

Share The Canvas App With The Microsoft 365 Group

Now that the security enabled setting is turned on we can share the canvas apps with the Microsoft 365 group. Go to the maker portal, find the app and navigate to the sharing menu.

Type the Microsoft 365 group name in the search box. The group WC Finance Department now appears.

Select the Microsoft 365 Group and press the Share button. The canvas app and its associated SharePoint list is now shared with all members of the group. Did You Enjoy This Article? 😺

Subscribe to get new Copilot Studio articles sent to your inbox each week for FREE Enter your email address Sign Me Up Questions?

If you have any questions or feedback about Share Canvas App With A Microsoft 365 Group In Power Apps please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion. Matthew Devaney M365 Copilot Power Apps

How To Create Copilot Custom UI Widgets In Power Apps

Share this

Tagged

Power Apps

Have a Microsoft 365 topic idea?

Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.

Suggest a topic

Keep learning Microsoft 365

Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.

Continue learning

Next action

What to do next

Browse all tutorials →