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 / View Data Base on List...
Power Apps
Unanswered

View Data Base on List Hierarchy Column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have several controls. I'd like to be able to manage what each member can see/do with the control based on an employee hierarchy column on the employee Member List.

 

The Hierarchy are: National, Region, Local, Employee

 

Example: OnVisible the Screen Employee Name Dropdown default to the following, based on the UserName I am pulling from the active directory (the UserName is also on the list and referenced for the filter) should see:

     National - All employee name

     Region - Only the names of employees in their region (there are 8 regions).

     Location - Only employees at their Location

     Employee - Only data specific to that Employee

 

On the Member list each Member has the appropriate hierarchy designation (as listed above) as a line item.

 

Can I create a single variable that covers all of the above; is this possible?

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    What does the last sentence mean?

     

    National - All employee name

    'Member list'

    Region - Only the names of employees in their region (there are 8 regions).

    Filter('Member list', Region = LookUp('Member list', Name=User().Name).Region)

    Location - Only employees at their Location

    Filter('Member list', Region = LookUp('Member list', Name=User().Name).Region&&Location = LookUp('Member list', Name=User().Name).Location)

    Employee - Only data specific to that Employee

    Filter('Member list', Name=User().Name)

     Sik

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The Member list looks like this:

     

    UnqID        Park         SiteName                       UsrNm                 MemberName         Hierarchy

    AA0000      DEVA       Death Valley                  Andy Tandy          Tandy, Andy            Employee     Should only see his park data

    AA0000      DEVA       Death Valley                  Andy Tandy          Tandy, Andy            Employee     and his personal data

    JJ0000        DEVA       Death Valley                  Joe Schmoe          Schmoe, Joe            Park             Should see all employee and park

    JJ0000        DEVA       Death Valley                  Joe Schmoe          Schmoe, Joe            Park             data at that park

    MM0000    PWRO      Pacific West Region      Merv Griffin           Griffin, Merv           Region         Should see all Parks/People in         MM0000    PWRO      Pacific West Region      Merv Griffin           Griffin, Merv           Region         Region

    CT0000      WASO      National Office             Carl Tall                  Tall, Carl                 National       Should see all Regions, all Park,

                                                                                                                                                              Employees

     

    The Training List Looks Like This:

     

    UnqID        Park         SiteName                     UsrNm                MemberName       Training              Hierarchy

    AA0000      DEVA       Death Valley                Andy Tandy        Tandy, Andy           Driver                 Employee

    AA0000      DEVA       Death Valley                Andy Tandy        Tandy, Andy           Mechanic           Employee

    JJ10177      DEVA       Death Valley                Joe Schmoe        Schmoe, Joe           Driver                 Park

    JJ1077        DEVA       Death Valley                Joe Schmoe        Schmoe, Joe           Captain              Park

    MM0000    PWRO      Pacific West Region    Merv Griffin        Griffin, Merv            Chief                  Region

     

    Will the below get me the result I desire?

     

    Set(ThePark,,LookUp('Member List',UserName=User().FullName).'EC Park');
    Set(TheRegion,,LookUp('Member List',UserName=User().FullName).'Nps Region');
    Set(TheLv,LookUp( 'Member List',UserName=User().FullName).'MemberHierarchy');

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I would need a multiple condition statement that says in some way check the Member List 'UserNameFld' for the UserName on the screen 'UserNameFld' (as pulled from the active directory); If the name is on the Member List check the Member's Hierarchy, and allow access based on that Hierarchy. 

     

    Employee:

    Park:

    Region:

    National:

     

    You are proposing the following. Is this still you recommendation based on the above clarification?

    Filter('Member list', Region = LookUp('Member list', Name=User().Name).Region)

    Location - Only employees at their Location

    Filter('Member list', Region = LookUp('Member list', Name=User().Name).Region&&Location = LookUp('Member list', Name=User().Name).Location)

    Employee - Only data specific to that Employee

    Filter('Member list', Name=User().Name)

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I'm confused with your requirement? Could you please share a detailed example about what you want?

    Sik

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Please except my apology. I was away for a couple of days.

     

    Below are examples of the first two screens of one of my Apps.

     

    The first screen is a 'site' general data screen. The second screen would populate with employee specific data.

     

    Hierarchy Designation: 'Employee'

         1. Screen 1: The Park Dropdown should auto-populate to the User's park alpha code (based on the User's (as compared to the

             UserName field on the screen (data pulled from the active directory and compared to the UserName on the Member

             list).

         2. Screen 1: The Gallery should auto-populate with that User's park data automatically, based on the content of the Park

            dropdown.

         3. Screen 1: The Dropdown should be 'DisplayMode.Disabled', and the User should NOT be able to change the park alpha in

             the Dropdown. This should apply to all screens and dropdowns throughout the App. Anyone with hierarchy designation

             'Employee' should only be able to see their park data and their own data.

         4. Screen 2: On transition the Region dropdown and the Park dropdown should default to the User's park and region, and

             appear 'DisplayMode.Disabled'.

     
    Hierarchy Designation: 'Park'
        1. Screen 1: If the User hierarchy is 'Park' the park Dropdown should be in 'DisplayMode.Disabled'. The 'Park' User shall only be

            able to see just their park data, their specific data, and all data associated with all Members also assigned to that park. This

            should occur in all Galleries. 

        2. Screen 2: If the User hierarchy is 'Park' the 'Region' and Park Dropdown shall default to their region and park and both

            Dropdowns shall be in 'DisplayMode.Disabled'. The 'Park' User shall only be able to see just their park data, their specific data,

            and all data associated with all Members also assigned to that park.

     

     

    Hierarchy Designation: 'Region'

        1. Screen 1: If the User hierarchy is 'Region' the Park Dropdown should be 'DisplayMode.Edit'. The Region User should be able

            to change the park alpha in the Dropdown; however, the Region User shall ONLY be able to change to and see the data of

            the parks in their region, all their own data, and all data of employees at those parks in their region. There are seven Regions

            -  i.e. PWR, SER, NER, NCR, etc. Each Regional person is over one region.

        2. Screen 2: If the User hierarchy is Region the 'Park' and 'Region' Dropdowns shall default to their region and park. The Region

            Dropdown shall be 'DisplayMode.Disabled' and the Park Dropdown shall be 'DisplayMode.Edit. The Region member shall be

            able to change park - within their region, but not change the Region.

     

    Hierarchy Designation: 'National'

        1. If the User hierarchy is 'National' all Dropdowns should be 'DisplayMode.Edit'.

        2. The National User shall be able to change all controls, view all regions, all parks, all employees.

     

     

                                                                                                                       -------> UserName: (would appear here)

    Screen1.PNGScreen2.PNG

     

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
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard