Analysis Services
How to create a custom rule for cell security
To create a custom rule for cell security
- In the Analysis Manager tree pane, right-click the cube associated with the cube role in which you want to create a custom rule, and then click Manage Roles.
- In Cube Role Manager, select the cube role in which you want to create a custom rule, and then click Edit. If the cube role does not yet exist, you must create it before performing this procedure. For more information, see Creating Cube Roles.
- In the Cube Role dialog box, click the Cells tab.
- In the Cell security policy box, select Advanced.
- In the row displaying the permission for which you want to create a custom rule, in the Rule column, select Custom. For information about permissions, see Cell Security.
- In the same row, in the Custom Settings column, click the edit (...) button.
- (Optional.) In the Cube Cell Security dialog box, in the Description box, type a description of the custom rule.
- In the MDX box, type a Multidimensional Expressions (MDX) expression to allow or deny access to specific cube cells. Or, instead of typing, beside the box you can click the edit (...) button to access MDX Builder, where you can create the expression by using drag and drop techniques. For more information, see Custom Rules in Cell Security.
- Click OK.
- In the Cube Role dialog box, click OK.