any idea how can i make the data app recognize who is the user who is using it?

Hello
I have KINME Flow, that used for get a reported Hours for Employees.
This WF is connected to a DATA App,
I want to let this app to be used as following
1- The Manager log on the app
2- the Flow check this username or any other way to get him only the data of his/her Employees
3- there is an icon/button that activate send the data via email to this manager.

any idea how can i make the data app recognize who is the manager using it?

Hi @RamyHussein,

does this node maybe help?

It can output some user information that you might be able to match to the Manager-Employee data you want to retrieve.

2 Likes

I’m currently working on a video that showcases how you can implement row level security.

The high level flow uses the Extract Context Properties node to get the user name. You can then load data from somewhere that maps user name to certain permission attributes and filters the data set in the data app accordingly, so that the user only sees data that meet criteria as per the permissions.

Noteworthy that this is only ā€œsecureā€ provided you are running this on Business Hub or Community Hub on a Team Plan… if you share a data app on Desktop KAP then obviously whoever know enough could just grab the source data or remove the RLS…

For full walk through video: will be up in a week or two here:

I will cover how to maintain access data on sharepoint lists…

https://www.youtube.com/@LowCodeAIForTheWin-fx2bo

3 Likes

To close the loop on this - my video is out now:

I use the extract context properties node as suggested by @hotzm and grab:

context.workflow.username

Which gives you the user name of the user running a data app on the hub (e.g. if I was running it with this account I’d be martindddd)

3 Likes