Forum Discussion

gspollock's avatar
gspollock
Helper I
3 years ago

Role filter not working

Hi,

I am trying to implement row level security.  The expression that is entered to filter the data in the fact table FACT_REPORT_SHARE in Manage Roles is this:

[EID] = LOOKUPVALUE(DIM_OBIEE_SECURITY_USER[USER_LOGIN],DIM_OBIEE_SECURITY_USER[USER_EMAIL], USERPRINCIPALNAME())

The EID that is returned by the expression is the Employee ID that is assigned to the user.  The [USER_LOGIN] column is the Employee ID.

 

I added a measure to FACT_REPORT_SHARE with the same expression:

EID2 = LOOKUPVALUE(DIM_OBIEE_SECURITY_USER[USER_LOGIN],DIM_OBIEE_SECURITY_USER[USER_EMAIL], USERPRINCIPALNAME())
 
When I put the EID and EID2 columns in a table, it is correctly returning my own EID in the EID2 column, but the EID column returns all the EID's in the table.
 
So it seems that this expression in Manage Roles is not filtering FACT_REPORT_SHARE.  What am I doing wrong?
[EID] = LOOKUPVALUE(DIM_OBIEE_SECURITY_USER[USER_LOGIN],DIM_OBIEE_SECURITY_USER[USER_EMAIL], USERPRINCIPALNAME())

1 Reply