web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check if current user ...
Power Apps
Answered

Check if current user is contained in Person type field, that allows multiple selections

(0) ShareShare
ReportReport
Posted on by 18

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.

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @KarlXII,

     

    To show/hide certain fields depending on a Multi-Select person field you could use the following code in the Visible properties of the corresponding DataCards:

    User().Email in ThisItem.MultiPersonColumn.Email

    Since the code is written within the form, you can simply leverage ThisItem. Should it be outside of the Form, use a LookUp instead.

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • Verified answer
    KarlXII Profile Picture
    18 on at

    Just for anyone who end up here, the code that ended up working for me was

    User().Email in LookUp('testni seznam', ID = Value(DataCardValue9.Text)).'Validation group'.Email

    @LaurensM 's reply did help guide me to the working solution, so I marked his answer as the accepted solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard