I have a list of projects in SharePoint, where every project gets assigned a group of multiple people in order to validate project. I need certain elements of the custom form to be visible only to people from this group, so I need to check, whether current user is part of the group. How do I do this?
Note: I already did this for the project leader (another column of the list is where the responsible person gets assigned (single selection) and likewise certain elements should only be visible to that specific individual), I put the following code under the visible property of the attachments window, which is one of the elements that are only to be visible to the leader:
User().Email = ResponsiblePersonEmail.Text
ResponsiblePersonEmail is a label with code LookUp('testni seznam', ID = Value(DataCardValue9.Text)).'Responsible person'.Email
I've tried modifying this formula for fields with multiple people, but don't really know about the specific programing language, used in PowerApps yet. Here DataCardValue9 returns the value of the ID data card of the list item.