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 / Different user rol has...
Power Apps
Suggested Answer

Different user rol has different view when going into screen

(2) ShareShare
ReportReport
Posted on by 943 Season of Giving Solutions 2025
Hi!!
 
I have a screen where different users from other departments will have to enter. The thing is I dont want all those users to see full information that is on there, just the part which it contains its deprtment in the list.  How could I do that? Should I create another list with the name of the user or the mail and the department?
So if a user is from department X, he will not be able to see what Y is doing and viceversa.
 
Thanks!
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    Approach 1
    • Create SP Groups / MIM Group / AD Group for respective departments.
    • Add the Users inside the respective SP Group.
    • Based on that you can write the logic accordingly.
     
    Step 1:
    Power Apps shared with One AD Group.
     
    Step 2:
    The Same Group also needs to be shared with SharePoint site with relevant permission level.
     
    Step 3:
    Create a one more SharePoint List (PermissionMatrix) and Add the New Item (Title) With the Same Group name in the title.
     
     
    Break the List Item permission and shared only with the specific group.
     
     
    Step 4:
     
     
     
    Approach 2
     
    • Create One SharePoint List Departments With Values of Department.
    • Create One SharePoint List User Mapping(ListName of your choice for eg., UserDepartmentMapping) Respective Users against each department.
    • Get current user department in Power Apps
    Set(
        varUserDept,
        LookUp(
            UserDepartmentMapping,
            Email = User().Email,
            Department
        )
    )
     
    Filter your screen / gallery

    Filter(
    MainList,
    Department = varUserDept
    )
     
    Note:
     
    From the Governance and Audit Perspective I would suggest you to go with the Approach 1 which is the best Practise
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Charlie Martharper Profile Picture
    943 Season of Giving Solutions 2025 on at
     
    I cannot use the first approach because I dont have permission to do it.
    When doing the 2nd approach, when u say get the user department and write the "Set" part, where sould I write it?
    I created a list with name of the user, the mail and the department:
    In the other list they connect via third column (eap/unitat). 
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    1. Create a List Departments Which having all departments (For e.g. Sales, Marketing, Finance, HR , etc.,)
     
    2. Create a List with UserDepartment Mapping Which will have User Name, Email and their Associated Departments.
     
    3. Now in the App (On Start) Property 
     
    We need to get the UserDepartment for the current User.
     
    User is part of 1 Department - Lookup
    Set(
        varUserDept,
        LookUp(
            UserDepartment ,
            Email = User().Email).
            Department
        )
    )
     
    User is part of Multiple Department - Filter
     
    Set(
        varUserDept,
        Filter(
            UserDepartment ,
            Email = User().Email)
    )
     
    I hope this is clear to you now.
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard