cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhrigu12
Advocate III
Advocate III

powerapps gallery view restriction

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

1 ACCEPTED SOLUTION

Accepted Solutions

@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.

 

View solution in original post

5 REPLIES 5
dinusc
Microsoft
Microsoft

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

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
Memorable Member
Memorable Member

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...

 

Good luck!

 

@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.

 

Thanx for the solution...!!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,930)