Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Pass Multiple values in Row Level Security in OAC

Accepted answer
94
Views
10
Comments

Hi,

As per project requirement, am implementing row-level security in OAC.

I have used session variable and initalization block to implement row level security.

In initialization block - i have put default initialization string SQL - please find attached snapshot -

For Data filter - i have applied in one of LTS -

When i am logging with one user - i am getting only one value to filter. But as per SQL in initalization block - it contains multiple topdepartment values. How should i pass multiple values in row-level security.

Thanks in advance!!

Regards

Saroj

Tagged:

Best Answer

  • GayathriAnand-Oracle
    edited December 2024 Answer ✓

    In the init block SQL where clause, use UPPER for both left and right hand side:

    WHERE UPPER(EMPLOYEE_ID) = UPPER('VALUEOF(NQ_SESSION.USER)'

    This will ensure that the comparison is using upper case for employeeid column and the session variable.

Answers