EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB30714: Handling of security filters with multiple qualifications applied to Intelligent Cube view reports in MicroStrategy OLAP Services


Community Admin

• Strategy


This article explains how security filters with multiple qualifications work with Intelligent Cube based reports.

When a security filter includes more than one qualification and it is used against Intelligent Cube data, Strategy OLAP Services must determine whether the individual qualifications can be applied, and also whether the combined qualification is valid to apply.
If all security filter attributes are present in the Intelligent Cube design, then all the security filter qualifications can apply directly. They will be visible in the Cube Subsetting Instruction and the view report's results will be restricted according to all qualifications.
 
Intelligent Cube structure

ka04W00000148CnQAI_0EM440000002ERR.gif

 
View report

ka04W00000148CnQAI_0EM440000002ERP.gif

 
User's security filter

ka04W00000148CnQAI_0EM440000002ER2.gif

 
View report results

ka04W00000148CnQAI_0EM440000002ERE.gif

 
Cube Subsetting Instruction
select [Quarter]@[QUARTER_ID],
   [Quarter]@[QUARTER_DESC],
   sum([Profit])@{[Quarter]},
   sum([Units Received])@{[Quarter]}
from Subcategory, Month, Call Center+Region Revenue
where ([Region]@[REGION_ID] in (1, 2, 3)
   and [Category]@[CATEGORY_ID] in (1))
 
Because both security filter attributes (Region and Category) exist in the Intelligent Cube, they are included in the WHERE clause.
 
Security filters on Intelligent Cubes where some security attributes are absent from the cube
Refer to the following Strategy Knowledge base document for general remarks on security filter application to Intelligent Cubes where not all of the security attributes are found.
KB30711: Security filter application to view reports based on Intelligent Cubes missing the security filter attribute in Strategy OLAP Services
When the security filter includes qualifications on different attributes, each qualification is checked individually according to the same rules: 

  • A qualification whose attribute is not found in the Intelligent Cube, but which is related to a cube attribute, causes the entire report to return no data. The attribute relationship to the cube means that the data in the cube are subject to the security filter in terms of the project schema. Since the qualification cannot apply without the attribute in the cube, it would be incorrect to ignore the qualification because the user would receive data outside the security filter's scope -- a breach of security.
     
    It does not matter if other security filter qualifications can apply. One qualification related to the Intelligent Cube, but which cannot be evaluated, is sufficient to suppress all report data.
     
  • A qualification whose attribute is unrelated to any attribute in the Intelligent Cube is, by definition, not relevant to the cube. It is treated as a "true" branch with the following outcomes:
    • Ignored qualification (True) AND applied qualification (T/F) = Applied qualification
      • Removing the ignored qualification does not affect other qualifications.
    • Ignored qualification (True) OR applied qualification (T/F) = True
      • Qualifications directly connected by OR to a condition that is ignored (by replacing it with "true") cause the other side of the OR operator to be discarded as well. This is consistent with security filter behavior in the Strategy SQL Generation Engine, as described in the following Strategy Knowledgebase document.
      • KB15250: An ignored filter qualification with a conjunction of OR causes other qualifications to be dropped in Strategy SQL Generation Engine

In these examples, the same user, with the same security filter, executes the same view report definition against Intelligent Cubes with different attributes.
 
Intelligent Cube omitting the security filter attribute Region, but including the related attribute Call Center

ka04W00000148CnQAI_0EM440000002ERX.gif

 
View report results:

ka04W00000148CnQAI_0EM440000002ERO.gif

 
Cube Subsetting Instruction:
"Where 0" is there because the entire security filter is assumed false.
 
select [Quarter]@[QUARTER_ID],
   [Quarter]@[QUARTER_DESC],
   sum([Profit])@{[Quarter]},
   sum([Units Received])@{[Quarter]}
from Subcategory, Month, Call Center Revenue
where 0
 
Intelligent Cube omitting all geography attributes (unrelated to the Region security qualification)

ka04W00000148CnQAI_0EM440000002ERT.gif

 
View report results:

ka04W00000148CnQAI_0EM440000002ERV.gif

 
Cube Subsetting Instruction:
select [Quarter]@[QUARTER_ID],
   [Quarter]@[QUARTER_DESC],
   sum([Units Received])@{[Quarter]}
from Subcategory, Month, Revenue
where [Category]@[CATEGORY_ID] in (1)
 
In the last example, Profit values do not appear in the results because the metric is related to the security filter. The Profit fact includes Employee as an entry-level attribute, which is a child of Region. Since the Region qualification cannot apply to this cube, it would be a security breach to show Profit values without considering the Region filter.
 
Units Received is based on a fact whose entry-level attributes (Item and Month) are completely unrelated to Region. Therefore, it is valid to apply the Category qualification by itself to Units Received and present the filtered results. his behavior is documented in the earlier-referenced Strategy Knowledgebase document KB30711.
 
Further reading
KB30696: Overview of security filter application to view reports based on Intelligent Cubes in Strategy OLAP Services
 


Comment

0 comments

Details

Knowledge Article

Published:

April 25, 2017

Last Updated:

April 25, 2017