Hi everyone,
I've built a small database to see how the row-level security works. Everything has been set in PME (Pentaho Metadata Editor). Here is my .xmi for those who want to see how I set everything up (you need to change from .txt to .xmi).
I have also set up my user and role in my Administration Console. My roles in the administration console are : dummy and oakwood, and they have one employee each as user (dummyEmployee in dummy and oakwoodEmployee in oakwood). So to login in the Pentaho User Console, I use dummyEmployee + my password.
My problem is that my data constraints are not taken into consideration whatever user I use to login in the BI Server. The table shown in my dashboard is always the same.
Here is the MQL query I've built with Metadata Data Source Editor from PRD (Pentaho Report Designer) :
<mql><domain_id>my-dashboard</domain_id><model_id>BV_MODEL_1</model_id><options><disable_distinct>false</disable_distinct><limit>-1</limit></options><selections><selection><view>BC_CLIENT</view><column>BC_CLIENT_NAME</column><aggregation>NONE</aggregation></selection><selection><view>BC_ORDERLINE</view><column>BC_ORDERLINE_TOTAL_ORDERS</column><aggregation>COUNT_DISTINCT</aggregation></selection></selections><constraints/><orders/></mql>
Are my data constraints well written in PME? ([BT_CLIENT_CLIENT.BC_CLIENT_ID]="1" for example)
Thanks in advance for anyone who can help me.
Regards,
I've built a small database to see how the row-level security works. Everything has been set in PME (Pentaho Metadata Editor). Here is my .xmi for those who want to see how I set everything up (you need to change from .txt to .xmi).
I have also set up my user and role in my Administration Console. My roles in the administration console are : dummy and oakwood, and they have one employee each as user (dummyEmployee in dummy and oakwoodEmployee in oakwood). So to login in the Pentaho User Console, I use dummyEmployee + my password.
My problem is that my data constraints are not taken into consideration whatever user I use to login in the BI Server. The table shown in my dashboard is always the same.
Here is the MQL query I've built with Metadata Data Source Editor from PRD (Pentaho Report Designer) :
Quote:
<mql><domain_id>my-dashboard</domain_id><model_id>BV_MODEL_1</model_id><options><disable_distinct>false</disable_distinct><limit>-1</limit></options><selections><selection><view>BC_CLIENT</view><column>BC_CLIENT_NAME</column><aggregation>NONE</aggregation></selection><selection><view>BC_ORDERLINE</view><column>BC_ORDERLINE_TOTAL_ORDERS</column><aggregation>COUNT_DISTINCT</aggregation></selection></selections><constraints/><orders/></mql>
Thanks in advance for anyone who can help me.
Regards,