SSAS Analytics Service role-based dynamic authorization

Source: Internet
Author: User

Background:

An analysis database that contains multiple products, business data for various regions of the country (such as sales data, etc.),

Requirements

1: Individual product owners view data for their products

2: Each region can only view its own data

Scheme:

SQL 2005 has role-based licensing services that control access to data by setting up product and region roles.

Steps:

0: Set up accounts and security groups on the domain

Setting up security groups: Products (mbiproducts), Regions (mbidepartment)

If you have not established an account to view your product or region data, set up your account

1: Add account attributes in the region dimension and Product Dimensions (the account's data should be imported into this property when processing data)

2: Add the Role "product",

Account mapping:

The data source is: Read

One of the key points is "Cell Data": [Product]. [Account].currentmember=strtotuple ("[Product].[ Account].&["+lcase (UserName) +"] "), which controls that the role does not allow access to other unauthorized cells (show N/a when accessed).

Key point two: StrToTuple ("[Product].[ Account].&["+lcase (UserName) +"] "),

This is used to control the use of the dimension when only the authorized dimension is displayed, the other dimensions will not be displayed (because the data displayed is N/a)

Note Enable, so that total is the authorized total instead of the real total.

Here, the function is set up.

Test tip:

Using the cube's browser (Browser) to test role-based permissions is most convenient.

Simply click the switch user in the upper-left corner to switch to the desired user,

Final effect:

Admin user, can see all varieties:

Individual product users, looking at only a single symbol:

Region-based authorization and the above product-based authorization process are identical.

SSAS Analytics Service role-based dynamic authorization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.