Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

RLS with internal users file

Hi there!

 

I need to set RLS in my sales dataset. I plan to have just two access levels:

 

  1. AM (Account Manager) - The system will get user email and filter relevant clients via related dimension table
  2. FULL- Unrestricted access (all visible)

I have setup the user table as follows:

 

EmailTypeAccount ManagerSurnameNameActive
[email protected]AMDoe JohnDoeJohnTrue
[email protected]FULLSmith HarrySmithHarryTrue
[email protected]FULLSimpson CarolineSimpsonCarolineTrue
[email protected]FULLSanchez RomonSanchezRomonTrue
[email protected]FULLGarcia EstebanGarciaEstebanTrue
[email protected]AMBianchi JaneBianchiJaneTrue
[email protected]FULLJohnson PetraJohnsonPetraTrue

 

The user table is connected to a client dimension table on the Account Manager column.

 

I need the system to work in a way that:

 

  • If the user is of AM type, only relevant clients are visible
  • If the user is of FULL type everything is visible (no filter)
  • If the user is not present in the user table nothing is displayed!

 

For AM and FULL type all seems to work. If instead I simulate an user not censored in the user table everything is still displayed!!

 

I cannot therefore find an easy way to avoid that unknown users (not listed in the table above) are displaying everything. I know that I could restrict access via dataset security in PBI service but we are using groups so there is always the chance of a new user to be activated without being censored in my PBI user table.

 

Hope this is clear enough to provide me a bit of direction.

 

Regards,

C.

 

2 Replies