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 / Disable toggle control...
Power Apps
Answered

Disable toggle control if logged in user is not available in the sharepoint group

(0) ShareShare
ReportReport
Posted on by 4

Hi all,

In our sharepoint site we have two "Data entry" and "Directors" group.

If data entry group user opened powerapps form automatically toggle control will be in disable mode and if directors group  user opened powerapps form automatically toggle control will be in enable mode.

 

Please guide

 

Best regards,

Nagendra.

Categories:
I have the same question (0)
  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @nagendras there is no direct way of getting to know if the current User is member of a specific SharePoint group.

     

    You know have two possibilities

     

    1. Create two m365 groups, assign the users to the groups and use the group inside your sharepoint group. In powerapps there is a connector for m365 groups which could be used to get the m365 group members.

     

    2. Create a list on your sharepoint site and name it AppPermissions. 

    Create one item with Title value = IsDirector.

    Break role inheritance for this item and only apply read permissions for the SharePoint directors group. Data entry group should not have access to this item at All.

     

    In your app your will need to add this list as a datasource. In App. OnStart use LookUp() function to get this specific item so something like LookUp(AppPermission, Title ="IsDirector"). If the lookup Returns the item we know the User is in the directors group

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • nagendras Profile Picture
    4 on at

    Hi PowerRanger,

    Thank you, Now director's will be able to approve the forms.

     

    Best Regards,

    Nagendra.

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard