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 / Restricting Access to ...
Power Apps
Suggested Answer

Restricting Access to SharePoint and PowerApps Content by Department

(0) ShareShare
ReportReport
Posted on by
I aim to establish security settings that allow only members of specific groups or Microsoft 365 users from certain departments to view sharepoint  and powerapps content relevant to their group or department and NOT the entire lists
Categories:
  • Suggested answer
    Ammar Zaied Profile Picture
    97 on at
    Hi,

    To establish security settings in SharePoint and PowerApps that allow only specific groups or departments to view relevant content, you can follow these steps:

    For SharePoint:

    1. Create SharePoint Groups:

      • Go to the settings wheel and select 'Site settings.'
      • Under 'Users and Permissions,' choose 'People and groups.'
      • Create new groups for each department or user group.
    2. Assign Permissions:

      • Assign these groups appropriate permissions on the SharePoint site, list, or library.
      • Limit access by breaking inheritance on specific lists or libraries and then assigning unique permissions to the newly created SharePoint groups.
    3. Use Audience Targeting (optional):

      • Enable audience targeting on specific lists or libraries to show content only to certain groups.
      • Configure audience targeting in the list or library settings.

    For PowerApps:

    1. Implement Role-Based Access Control (RBAC):

      • Determine what data or components each user role should access.
      • Use the User() function in PowerApps to check the user's email or department and conditionally display data or screens.
    2. Conditional Visibility in PowerApps:

      • Use visibility properties of controls to show or hide data based on the user's role.
      • Example: Set the visibility property of a data card or a screen to something like: If(User().Email = "user@example.com" || User().Department = "HR", true, false)
    3. Filter Data Based on User:

      • Use SharePoint Integration or direct queries to filter data.
      • Example, to only show items from a SharePoint list where the department matches:
        Filter(SharePointList, Department = User().Department)
    4. Security Considerations:

      • Data and UI layer security in PowerApps doesn't secure the data at the source. Ensure backend data is also securely managed.
      • Consider using Azure AD groups and security roles in Dynamics 365 for more granular access control, if applicable.

    By implementing these settings, you can ensure that only the relevant members or departments can view or interact with specific SharePoint and PowerApps content, enhancing security and maintaining organizational integrity.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard