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 Pages / Power Pages - Restrict...
Power Pages
Answered

Power Pages - Restrict Data You Can View Based On Your Department Using Table Permissions

(0) ShareShare
ReportReport
Posted on by 21

Hi. I have several departments in my organization. I have a table that shows all employees within those departments. How do I restrict the data within the list to where I can only see employees in my own department? I have a (organization) table of just department and employee name which serves as a table for lookups. I have another (employee) table that has the employees' information and a lookup field for department. The organization is the parent of the employee table. I used a contact access type for the organization table and parent access type for the Employee table. Is this the right way to go about it? Thanks!

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    I believe you did the right configuration.. is that working for you or are you seeing additional data that you shouldn't? 

  • hwu Profile Picture
    21 on at

    Hi. I am not seeing any data so far. I attached some screenshots of the setup. If I was in the OTS department, I want to be able to see only the employees in the OTS department.

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    I would probably suggest starting with a bit of a clean-up there:

    • I see some permissions without any table, I would suggest deleting those as it's probably obsolete
    • There is a permission to the Contact that is inactive, probably worth deleting as well to avoid conflict
    • Can you confirm if you are signed in as "Henry Wu"?
    • Which Web Roles does Henry Wu have?
    • I see many roles associated with Auth Users +3 - what are the other 3? 
    • we can't see the full "table name" from the snapshots, can you expand that column?
  • hwu Profile Picture
    21 on at

    I just cleaned up the permissions. Here are the revised screenshots with expansion of the table names, the 3 roles, and the web roles Henry Wu has. I am signed in as Henry Wu. Thanks.

  • Verified answer
    oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Thanks for that, a few things here:

     

    • Anonymous Web Role shouldn't be assigned to a user, this is automatically assigned to users that haven't logged in to the portal (although I wouldn't say this is the issue)
      • the same applies for Authenticated Web Roles, you don't need to assign to a Contact
    • Department and Organisation are Web Roles? is there a reason for them to be Web Roles? The way I like to see is that Web Roles are different group of users with different types of access.. is that the case? If not, I would suggest removing those Web Roles entirely and using the OOB Authenticated Web Role
    • Child Permissions don't need to have a Role associated to it, not sure if that is automatically copying the roles from the Parent (for Employee List)
    • Do you need a permission for the Department table? it seems your are not exposing that data (you have 2 permissions for that table)

    The above will help cleaning up even further your permissions, it might not be the answer just yet, but this will help us troubleshooting to find the issue.

  • hwu Profile Picture
    21 on at

    I also removed the anonymous web role from the permissions. 

    I don't have a reason for the Organization and Department to have web roles. I was just testing some things. I removed those web roles and removed roles from the child permission. 

    I don't need the permission for the department table, so I removed that as well. 

     

    I attached the screenshots after the changes. I now have an error where I don't have permissions to view the data now. Before, I couldn't see any data because no records were found. 

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Sorry I forgot to come back to you here, did you find the root cause here or do you still need help? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 58

#2
11manish Profile Picture

11manish 55

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard