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.