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

KB13852: How to create a required prompt that will be hidden from users without permission to use the prompt in MicroStrategy Developer 9.x - 10.x?


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This technical note documents the steps to create a required prompt that will be hidden from users without permission to use the prompt.

USAGE SCENARIO:
Project designers may need to restrict access to certain hierarchies using ACLs (access control lists) in Strategy Developer. For example, users in one department may need to see report results in terms of products, but that information may be irrelevant to a different department. Further, the other department should not even have the option of creating reports at product level.
 
Developers can implement part of this requirement by denying access to certain users or groups at the attribute level. When a user is configured with 'Denied All' permissions on an attribute, that user will not be able to select that attribute in an object prompt to add to the template, as shown below:
 

ka044000000kULEAA2_0EM440000002FWG.gif

 
For prompted reports, there may be cases in which these user group(s) with access to the attributes should be required to filter on the hierarchy, while users without access to the attributes should be able to run the report as if the prompt did not exist. The application requirements would be:
 

  • Users with access: The prompt is visible. If the user attempts to execute the report without providing an answer, the user should be returned to the unanswered prompt.
  • Users without access: The user never sees the prompt, and the prompt's filter qualifications are omitted from the report SQL.

IMPLEMENTATION:
A prompt with this behavior can be built in Strategy Developer using the following steps. The steps here illustrate the technique for an attribute element prompt, but the same steps would apply to any type of prompt:
 

  • Create a new prompt and answer the preliminary screen(s), as shown below:
ka044000000kULEAA2_0EM440000002FW9.gif
  • Before proceeding to the final screen, ensure that the 'Choose default prompt answers' option is checked, as shown below:
ka044000000kULEAA2_0EM440000002FWF.gif
  • On the following screen, set a minimum number of answers that users with access to the prompt are expected to provide, as shown below:
ka044000000kULEAA2_0EM440000002FWD.gif
  •  
    NOTE: It is not required to enter default answers.
     
  • On the final screen of the prompt generation wizard, set the prompt to be optional by unchecking the 'Prompt answer required' box, as shown below:
ka044000000kULEAA2_0EM440000002FWA.gif
  • Add entries to the Access Control List to deny access to the users who should not see the prompt.

NOTES:
It is important that the prompt be technically optional according to the 'Prompt answer required' checkbox. For this type of prompting, the answer requirement should be implemented using the minimum number of answers, but not the 'required' status.
 
Consult the following Strategy Knowledge Base technical note for more details on configuring Access Control Lists:
KB4409 - The Object Access Control List in Strategy 9.2.x - 9.4.x.
 
13852


Comment

0 comments

Details

Knowledge Article

Published:

June 15, 2017

Last Updated:

March 29, 2019