The Wiki will be offline Monday, November 20, for upgrade between 10:00am ET and 5:00pm ET.
Hitachi Vantara Pentaho Community Wiki

Using Security from Action Sequences

Skip to end of metadata
Go to start of metadata

In addition to providing access to security information within the web application code, the security system of the platform provides access to security information within action sequences. The information then can be used in JavaScript rules, presented in reporting prompts, provided as input to SQL Lookup Rules, etc.

If you look at the inputs section of an action sequence, you will see inputs typically defined like this:

  <someInput type="string">

In the above example, the input (called someInput) can be found by looking at the request (HttpServletRequest, PortletRequest, etc.) for a variable called someInput. Then, throughout the rest of the action sequence, specific actions can reference that input.

Security Inputs

Pentaho BI Platform extends the inputs to provide a unique type of input--the security input. The following input names are supported:

Input Name Type Description
principalName string The name of the currently authenticated user.
principalRoles string-list The roles that the currently authenticated user is a member of.
principalAuthenticated string true if the user is authenticated, false otherwise.
principalAdministrator string true if the user is considered a Pentaho Administrator, false otherwise.
systemRoleNames string-list All the known roles in the system. Use caution since this list could be quite long.
systemUserNames string-list All the users known to the system. Use caution since this list could be quite long.


The following input section will get the list of the user's roles, and make it available to all the actions in the action sequence:

  <principalRoles type="string-list">


favourite favourite Delete
security security Delete
platorm platorm Delete
action_sequences action_sequences Delete
user_identity user_identity Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.