Forum Discussion

akash0800-pbi1's avatar
akash0800-pbi1
New Member
2 years ago
Solved

RLS

Hi,

 

Need your assistance.

 

I currently have a RLS that restricts access for viewing employees information out of the base location. Typically the Leads can view details based on Team ID and base location.

And now I have a new requirement where I want to share the details of an employee who is out of the location (team id) but share a common work ID.

Example: an employee with X team ID and working on a different project out of his base location. So he has 2 work id's say it as A and B where represent the work ID of base location and B out side of base location.

 

Because of my current RLS the Lead M is not ablebto view the details of B and X employee.

 

I tried to create some intermediate tables which work id's and matching team codes. Here if I hard-coded the work ID the RLS is working but not sure how to make it dynamic. So that  when a Lead login userprincipalname() should be checked against the Work ID and display the Offshore employees along with base location else the normal RLS will work as is.

 

Can you please help me on this.

 

Thanks,

Akash

  • akash0800-pbi1's avatar
    akash0800-pbi1
    2 years ago

    Hi,

     

    I found a solution for this. What I actually did is that I added the column (Regional Manager) and added it in the existing role that filters users based on base location.

     

    Thanks,

    Akash

3 Replies