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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,834)