Forum Discussion

gopichilla's avatar
gopichilla
Resolver III
8 years ago
Solved

Row Level Security for Employee Department

Hello, All,   I need help on Row Level Security, Here I have a 10 Departments in my Organization and I don't want to show all data to all departments members here I want to show only related depart...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Honestly, I'd need some sample data from you with some screenshots to investigate further.

     

    Did you add the consumers to the security role in the service? That option is here:

     

    Also, for testing purposes, you can make a couple of measure to help you see what your security actually looks like.

     

    Try this:

    Create two new Measures:

    User = USERNAME()
    
    Department = LOOKUPVALUE(Departments[Department], Departments[User], USERNAME())

    Then add two Card visuals to your report, one each showing the values of these measures. This will show you what the actual username looks like when you log in, and if your Lookupvalue formula actually found a department. If the value doesn't find a department, everything will be blank.