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 / powerapps gallery view...
Power Apps
Answered

powerapps gallery view restriction

(0) ShareShare
ReportReport
Posted on by 67

1.2.jpg

 

I have created an app where all user in organization fill some details and submit. This forms needs to be rated by certain departmental people like in my case Corp BE (2-3 ppl). How to create a gallery which can be viewed by only some people who will give ratings?? Can anyone help...!!

Categories:
I have the same question (0)
  • dinusc Profile Picture
    Microsoft Employee on at

    The easiest way would be to create a list of user emails that are allowed to provide ratings and store it on the server. Note that any user that runs the app is successfully authenticated (or he/she will not be able to launch it) so all you need to do is to extract the authenticated email, validate it against the stored list onthe server and set the Gallery visibility accordingly. The email of the authenticated user can be obtained via User().Email formula. To test this, add a label to the screen and set its Text property to User().Email

  • bhrigu12 Profile Picture
    67 on at

    Thanx for your reply...!!

     

    Let me explain it more appropriately. I am making my app (let's say- MYAPP) in company environment (Note: I am not in IT system administrator). This app is shared with everyone in our company environment. Anyone from our company environment can fill up the form in powerapp with a sharepoint data source. 

    Once the form is filled up, it has to be rated by people in a specific department (say CORP) of our company.

     

    Your reply has given me one idea- To create 2nd app using the same data source and share it with the CORP people only (dis will restrict other users to view/modify). Once any form is filled, using microsoft flow it will notify the CORP people and they will visit the 2nd app and give the ratings which will be updated in sharepoint.

     

    Is there any way of doing it in same app??

  • BitLord69 Profile Picture
    914 on at

    If you are using Active Directory you can use security groups to control who can see the extra rating control(s).

     

    In this post I experiment with this: https://powerusers.microsoft.com/t5/General-Discussion/Is-it-possible-to-switch-the-view-as-InfoPath-in-powerapps/td-p/54604/jump-to/first-unread-message

     

    Good luck!

     

  • Verified answer
    dinusc Profile Picture
    Microsoft Employee on at

    @BitLord69provided a good option.

    The key is to find something that all trhe "corp" users have in common. For example, you may find that all the "corp" users are members of a certain gorup in which case you could use Office365Groups.ListGroupMembers(id) for validation.

     

  • bhrigu12 Profile Picture
    67 on at

    Thanx for the solution...!!

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 765 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 272

Last 30 days Overall leaderboard