Use Design Studio to define how the cube server restricts
access to cubes and dimension members.
Before you begin
You
must create a cube as a part of your cube model before you can create
a security model.
Procedure
To
create a security model:
- Open the Properties view of the cube,
hierarchy, or cube facts object for which you want to restrict access.
- In the Data Project Explorer view,
expand the Data Models folder of your data
warehousing project and open the OLAP Objects folder
of your data source.
- Under your cube model, select the cube, hierarchy, or
cube facts object for which you want to restrict access.
- Click .
- Enable security for your cube, hierarchy, or cube facts
object.
- In the Properties view, click the Authorizations tab.
- Select Enable Security.
- Optional:
Hierarchies and cube
facts objects each have two default security policies that cannot
be modified: a policy that allows all access and a policy that denies
all access. Additionally, you can define your own custom security
policies. A custom security policy contains two MDX expressions that
specify the elements to which you are allowing or restricting access. Note:
Cubes
have only the two default policies. You cannot create custom security
policies for cubes.To create a custom security policy for a hierarchy
or a cube facts objects:
- In the Properties view, click the Policies tab.
- Click Add policy
.
- Type a name and description for your new policy.
- If you want to specify elements to which to allow access,
select the Allowed field of your new policy
and click the ellipsis
button. Use the MDX Expression Builder window
to specify the elements to allow access. You can either directly type
an expression in the window, or build an expression by double-clicking
items in the lists.
- If you want to specify elements to which to deny access,
select the Denied field of your new policy
and click the ellipsis
button. For member
set policies of hierarchies and cube facts, you can use the MDX
Expression Builder window to specify the elements to restrict.Important: If you deny access to a complete dimension, user
roles that are assigned to this policy will not have access to any
of the data of the cube because no queries will return results. In
this situation, your reporting application will generally indicate
an error.
Repeat steps b–e for each custom policy that you want
to define.
- Specify authorizations for your cube, hierarchy, or cube
facts object. An authorization assigns security policies
to user roles. The user roles that you specify in the design studio
correspond to the user roles that you specify for your cube server
by using the administration console. When you import your security
model, you will map the user roles in the model to user roles in the
cube server.
Note: All the hierarchies of a shared dimension share
policies and authorizations. When the policies and authorizations
of a particular hierarchy are imported, all hierarchies that belong
to the same shared dimension are affected.
- In the Properties view, click the Authorizations tab.
- Click Add authorization
.
- Type the name of a user role in the Role
Name field. You can create a new user role,
or specify an existing user role.
Tip: If any user roles
are already defined, you can see a list of them in the Properties view
of the OLAP Roles object in your OLAP
Objects folder.
- Type the name of a security policy in the Policy
Name field. You can create a new policy, or
specify an existing policy.
Repeat steps b–d for each authorization that you want
to define.
- Optional: Validate your security model.
- Right-click your cube model and click Analyze
Model.
- In the Analyze Model window, select to select all security
constraints.
- Click Finish.
The Console view displays a summary
of any errors in your security model. The Problems View has
more detail.Note: Validating your model does not indicate contradictions
in your security configuration, such as authorizing a role with both
the Read Allowed and Read Denied policies of a cube.
What to do next
After
you create a security model for your cube, you can deploy your security
settings to your cube server by exporting the model to a file, and
then importing the OLAP security model with the Administration Console
of your warehouse server.