cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jesenavaranjan
Level: Powered On

Row Level Security Power Apps

Hi - I have a question about Row Level Security in Power apps

 

I want to restrict the data that comes into the Power App - based on the logged on User, and the Directorate they sit in.

 

1) How can I do this on Entry, rather than filtering?

2) Is there an AD connector - to read AD groups?

3) Can I use Flow to talk to the database, and run store procedures to restrict the view?

 

Is there any advice/links anyone can provide me, as I am very stuck.

 

Please and thank you

 

Jese

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Row Level Security Power Apps

Hi @jesenavaranjan,

 

To restrict the data that comes into PowerApps, you will need to set the related permission setting from the data source side. To show different data for different login users within PowerApps, the only way to achieve this is to filter the data according to different login user.

 

So far On-premise ad is not one of the avaiable connectors in PowerApps. But for Azure AD, you could take use of the following function to get the group members in PowerApps:

AzureAD.GetGroupMembers("GroupId").value

This function would return a table of the available users within the same Azure AD group.

The formula above could be put into the items property of a dropdown, then you could take use of the Dropdown selected value to save the value needed.

For example, Dropdown.selected.value.

 

About how to start a flow in PowerApps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

About how to return data to PowerApps from a flow:

https://flow.microsoft.com/en-us/blog/return-data-to-powerapps/

 

Regards,

Mona

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Row Level Security Power Apps

Hi @jesenavaranjan,

 

To restrict the data that comes into PowerApps, you will need to set the related permission setting from the data source side. To show different data for different login users within PowerApps, the only way to achieve this is to filter the data according to different login user.

 

So far On-premise ad is not one of the avaiable connectors in PowerApps. But for Azure AD, you could take use of the following function to get the group members in PowerApps:

AzureAD.GetGroupMembers("GroupId").value

This function would return a table of the available users within the same Azure AD group.

The formula above could be put into the items property of a dropdown, then you could take use of the Dropdown selected value to save the value needed.

For example, Dropdown.selected.value.

 

About how to start a flow in PowerApps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

About how to return data to PowerApps from a flow:

https://flow.microsoft.com/en-us/blog/return-data-to-powerapps/

 

Regards,

Mona

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,914)