cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filter on Outlook groups that the user belongs to

Hi,

 

In SharePoint I have a list of trainings, with a column containg the Outlook group this training is made for (ex: "Salespeople", "Developers", "Soccer Players")

 

I want the user of my app to see only the trainings that are made for him (e.g. show only trainings with target group "Developers" and "Soccer Players" if my user is a developer and a soccer player)

 

Is there a way to do that?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Filter on Outlook groups that the user belongs to

Hi @charlie75

 

It depends on how you identify the user to belong to one of the group? Is there any way to get this inforamtion form the system? If not you can simply have a dropdown in first Screen where user selects what group h belongs to and then the list will just filter the training for that group.

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Filter on Outlook groups that the user belongs to

Hi @charlie75,

 

Currenlty I don't find a proper way to make it working.

Things you may take as a consideration (and the current testing result):

1. Make sure the Outlook group field in SharePoint List is not a Multiple Value enabled field, currnelty this is not supported,

2. For single item of SharePoint list, we could check if the current user is a member of the Group, with the AzureAD.checkMembergroups(id,groupId),

But this method requires Azure AD connection, and to take use of the corresponding Gorup ID, not the group name.

 

We could get the group list that the current user belongs to, with the following method:

AddColumns(AzureAD.GetMemberGroups("testing@tenant.onmicrosoft.com",false).Value,"GroupName",AzureAD.GetGroup(Value).displayName)

But this requires behavior control like button, or the OnStart or OnVisible property of the screen.

Hope this helps a little.

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.
Highlighted
Helper I
Helper I

Re: Filter on Outlook groups that the user belongs to

Thanks a lot for your answer. However I think I will look for an easier solution.

Highlighted
Anonymous
Not applicable

Re: Filter on Outlook groups that the user belongs to

Hi @charlie75

 

It depends on how you identify the user to belong to one of the group? Is there any way to get this inforamtion form the system? If not you can simply have a dropdown in first Screen where user selects what group h belongs to and then the list will just filter the training for that group.

View solution in original post

Highlighted
Helper I
Helper I

Re: Filter on Outlook groups that the user belongs to

This is the solution I finally chose. Thank you @Anonymous

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,853)