I have data similar to below table and I'm trying to implement section access based on multiple columns
C1
C2
C3
C4
Region
Country
Manager (userId)
Department
D1
D1
D1
D1
EU
CN1
M1
D1
D2
D2
D2
D2
EU
CN2
M2
D1
D3
D3
D3
D3
EU
CN3
M1
D2
D4
D4
D4
D4
EU
CN4
M3
D3
D5
D5
D5
D5
AM
CN5
M1
D2
D6
D6
D6
D6
AM
CN6
M2
D4
D7
D7
D7
D7
AM
CN7
M4
D4
D8
D8
D8
D8
AM
CN8
M3
D3
D9
D9
D9
D9
AM
CN9
M8
D5
D10
D10
D10
D10
US
CN10
M5
D1
D11
D11
D11
D11
US
CN11
M6
D1
D12
D12
D12
D12
US
CN12
M7
D6
D13
D13
D13
D13
US
CN13
M8
D3
Ex:
1. a person can have access to EU region and also CN13 country
2. A person can have access to only US region data.
3. A person who is a manager (ex:M6) then he/she should see only data where Manager=M6
4. A person need to access only department D6 and Region EU then all the items in region EU for D6 data should only be shown
Basically I need to filter data on multiple columns or single column to restrict data. Can anyone help me how to achieve this? I was able to do it on only one column.