Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to use RLS on one page and NO RLS on the another page

Hi guys,

 

I have a complicated situation with RLS. I have 2 pages:

- Page 1 everyone can see all the data (Overview our department).

- In Page 2 the user is allowed to see only his data. (this is easy to fix namely Email = USERPRINCIPALENAME() )

 

But the thing is when I go to Page 1 then I see only the data of mine, but I need to see all the data of my department. How can I use 2 different RLS?

 

Is there any solution for this situation?

 

Thanks in advance!

4 Replies