cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyWork
Super User
Super User

Powerapps WebPart, display members of sharepoint site/group

Hi

 

Im wondering if anyone can point me in the right direction or maybe created a similiar solution.

What im trying to achive is a Powerapp that displays the members of a SharePoint site or 365 group.

I want to use this powerapp on multiple SharePoint pages and i dont want an app for each site.

So using powerapps or with flow i would like to the powerapps webaprt to display the users on the site it loads from.

 

I would provisiong a site with the powerapp/webpart and then add the groupid for that specific site.

So when the powerapp runs i would like it to get the members from the groupid connected to the sharepoint site or the members of the sharepoint site.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @JimmyWork ,

Do you want to embed an canvas app into SP Site Page?

 

If you want to retrieve members from a SP Site within your embedded app, I afraid that there is no way to achieve your needs in PowerApps currently.

Currently, within PowerApps, there is no way or functions supported to retrieve members from a SP Site.

 

If you want to retrieve members from a specific O365 group within your embedded app, you must provide the group id (e.g. '57efb8ae-2d32-4b04-807c-73550848af7b') of the specific group.

 

Based on the needs that you mentioned, I think the PowerApps web part could not achieve your needs. As an alternative solution, I think the <Embed> web part could achieve your needs:4.JPG

 

I have made a test on my side, and don't have the issue that you mentioned. Please take a try with the following workaround:

1. Add a <Embed> web part in your SP Site Page.

2. Set the "Website address or embed code" box to following:

<iframe width="1200" height="800" src="https://apps.powerapps.com/play/4af8a6f8-8fd8-4064-8e8f-d3b8d3ee1c74?tenantId=9e51064f-xxxx-41a2-xxxx-9785a9d6c706&GroupId=57efb8ae-2d32-4b04-807c-73550848af7b&source=website&screenColor=rgba(165,34,55,1)" allow="geolocation; microphone; camera"></iframe>

Note: The 'https://apps.powerapps.com/play/4af8a6f8-8fd8-4064-8e8f-d3b8d3ee1c74?tenantId=9e51064f-xxxx-41a2-xxx...' represents the web url of your canvas app. The '57efb8ae-2d32-4b04-807c-73550848af7b' represents the Group Id of the specific group.

More details about embedding canvas app into a Site Page, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-apps-dev#embed-your-app-in-a-webs...

You could find the web url of your canvas app as below:8.JPG

 

The App's configuration as below:6.JPG

 

7.JPG

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @JimmyWork ,

Do you want to embed an canvas app into SP Site Page?

 

If you want to retrieve members from a SP Site within your embedded app, I afraid that there is no way to achieve your needs in PowerApps currently.

Currently, within PowerApps, there is no way or functions supported to retrieve members from a SP Site.

 

If you want to retrieve members from a specific O365 group within your embedded app, you must provide the group id (e.g. '57efb8ae-2d32-4b04-807c-73550848af7b') of the specific group.

 

Based on the needs that you mentioned, I think the PowerApps web part could not achieve your needs. As an alternative solution, I think the <Embed> web part could achieve your needs:4.JPG

 

I have made a test on my side, and don't have the issue that you mentioned. Please take a try with the following workaround:

1. Add a <Embed> web part in your SP Site Page.

2. Set the "Website address or embed code" box to following:

<iframe width="1200" height="800" src="https://apps.powerapps.com/play/4af8a6f8-8fd8-4064-8e8f-d3b8d3ee1c74?tenantId=9e51064f-xxxx-41a2-xxxx-9785a9d6c706&GroupId=57efb8ae-2d32-4b04-807c-73550848af7b&source=website&screenColor=rgba(165,34,55,1)" allow="geolocation; microphone; camera"></iframe>

Note: The 'https://apps.powerapps.com/play/4af8a6f8-8fd8-4064-8e8f-d3b8d3ee1c74?tenantId=9e51064f-xxxx-41a2-xxx...' represents the web url of your canvas app. The '57efb8ae-2d32-4b04-807c-73550848af7b' represents the Group Id of the specific group.

More details about embedding canvas app into a Site Page, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-apps-dev#embed-your-app-in-a-webs...

You could find the web url of your canvas app as below:8.JPG

 

The App's configuration as below:6.JPG

 

7.JPG

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft This works perfect

 

I just hope Microsoft updates the People picker webpart to auto populate and display from groups. But for now the soltuoin you provided us awesome. Thank you very much for this.

 

I also found this, currenlty it does not support displaying memebrs from groups inside a sharepoint group but it works exactly as i want if you have the users in the sharepoint group.

 

https://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/group-people/-/releases

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,699)