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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data restriction based...
Power Apps
Unanswered

Data restriction based on distribution group

(0) ShareShare
ReportReport
Posted on by 27

Hi!

Is it possible to restrict data access in the Power Apps application based on users' membership in the Distribution Group?

I have an "Onboardings" gallery, and I want users from "Trainings," "HR," and "Finance" to see different information based on the onboarding status. For example, if the "HRStatus" is "In Progress" or "Completed," the "HR" user should only see onboardings with these statuses.

Categories:
I have the same question (0)
  • elseb Profile Picture
    774 Moderator on at

    Hi,

     

    I usually access control based on the user set which comes with each app (if required) but you could try:

    Office365Users.UserProfileV2(User().EntraObjectId).department
    and base IF() on the result.
  • beverlyg Profile Picture
    27 on at

    Hi, thank you for your answer. But the thing is that users would be hardcoded, am I right? In this situation, I need to set data access by the distribution group.

  • elseb Profile Picture
    774 Moderator on at

    not necessarily hardcoded because you can present controls based on the role, it won't work if you have to target individual persons.

     

    If i have to do that e.g. i have admin panel which is access by whole team but i want some settings be available to selected ones, I create a list where i store entraid of those selected users, and check if they can access it by comparing User().EntraObjectId with that list, before i send app to BAU i always create functionality to edit that list from within the app, I add one admin which cannot be deleted from the list and allow other members of that list to add delete members of that list.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard