cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
QQKevin
Level: Powered On

Office365 - Members of team in gallery

Hi all,

 

I'm trying to do a gallery control that will show all members of a particular O365 group or line managers direct reports as images in a gallery but can't quite seem to get it right.

 

How would you go about achieving this?


Regards,


Kevin

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Office365 - Members of team in gallery

Hi @QQKevin,

 

The Gallery could be done by he following steps:

1. Add Office 365 Users, Office 365 Group connection, 

2. Add A Dropdown Control, under the items property, configure the following:

Office365Groups.ListOwnedGroups().value

then set its value field to DisplayName:

99.PNG

Which would list all the available Office 365 groups, we need to get the selected ID from this Dropdown,

3. Add a Gallery control, under the items property, configure the following:

ForAll(Office365Groups.ListGroupMembers(Dropdown3.Selected.id).value,  
Office365Users.UserProfileV2(id))

4. If the Gallery didn't contain an image control, then add one within the Gallery, then configure the image property to:

Office365Users.UserPhotoV2(id)

You may also add other fields for the Direct reports or Manager as well, through the:

Office365user function.

 

Reference:

GalleryMember.gif

 

Regards,

Michael

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

Re: Office365 - Members of team in gallery

Hi @QQKevin,

 

The Gallery could be done by he following steps:

1. Add Office 365 Users, Office 365 Group connection, 

2. Add A Dropdown Control, under the items property, configure the following:

Office365Groups.ListOwnedGroups().value

then set its value field to DisplayName:

99.PNG

Which would list all the available Office 365 groups, we need to get the selected ID from this Dropdown,

3. Add a Gallery control, under the items property, configure the following:

ForAll(Office365Groups.ListGroupMembers(Dropdown3.Selected.id).value,  
Office365Users.UserProfileV2(id))

4. If the Gallery didn't contain an image control, then add one within the Gallery, then configure the image property to:

Office365Users.UserPhotoV2(id)

You may also add other fields for the Direct reports or Manager as well, through the:

Office365user function.

 

Reference:

GalleryMember.gif

 

Regards,

Michael

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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 48 members 4,945 guests
Please welcome our newest community members: