You need to have established a connection to a data source in Metadata Editor and selected one or more tables to create metadata for.
A role-based constraint is an MQL Formula statement that restricts access (on the row level) only to certain users or roles. Follow the below instructions to add fine-grained user- or role-based restrictions to your data source.
- In the left pane, right-click the table or column you want to modify, then click Edit.. from the context menu. The Physical Table Properties dialogue will appear.
- Click the green + icon above the Available field in the middle of the screen. The Add New Property dialogue will appear.
- Select Data Constraints, then click OK.
- Click the new Data Constraints item in the General category.
- Select Role-Based Constraints option in the right pane.
- Click the green + icon next to the Selected Users/Groups field in the right pane. A list of users and/or roles (depending on what you selected when configuring the security service earlier) will appear.
- Click the user or role in the left pane that you want to assign permissions to, then click the right arrow button in the middle of the window. The user or role will move from the Available list on the left to the Assigned list on the right.
- Click the checkboxes for the permissions that you want to assign to the selected user or role.
- Repeat this process for other users or roles you want to assign metadata permissions to, then click OK.
- Change any other relevant metadata options, then click OK to return to the Metadata Editor main window.
- When you are finished, save the metadata configuration as a domain using the Save As button, then publish it to the Pentaho Server as an XMI schema by selecting Publish from the File menu.