Skip to main content Skip to complementary content

Conditions (Advanced view)

Define the resource and/or user conditions that the rule should apply to.

Syntax:  

[resource.resourcetype = "resourcetypevalue"] [OPERATOR] [(((<resource.property = propertyvalue) [OPERATOR (resource.property = propertyvalue)))]

 

If you select a resource and a resource condition from the drop-down list in the Basic view, the Conditions field in the Advanced view is automatically filled in with corresponding code for the selected resource type.

Conditions are defined using property-value pairs. You are not required to specify resource or user conditions. In fact, you can leave the Conditions field empty.

The order that you define conditions does not matter. This means that you can define the resources first and then the user and/or resource conditions or the other way round. However, it is recommended that you are consistent in the order in which you define resources and conditions as this simplifies troubleshooting.

When using multiple conditions, you can group two conditions by clicking Group. After the conditions have been grouped, you have the option Ungroup. Additional subgrouping options are Split and Join. The default operator between conditions is OR. You can change this in the operator drop-down list. Multiple conditions are grouped so that AND is superior to OR.

To enable synchronization between the Basic and Advanced sections (so called backtracking), extra parenthesis are added to conditions created using the Basic section. Similarly, a user definition with an empty condition is automatically included in the Conditions text field if you add a resource using the Basic section. However, if you create your rule using the Advanced section only, and do not need backtracking, you do not need to follow these conventions.

Arguments:  

ArgumentDescription
resourceImplies that the conditions will be applied to a resource.
resourcetype

Implies that the conditions will be applied to a resource of the type defined by the resourcetypevalue.

You can also use predefined functions for conditions to return property values.

resourcetypevalueYou must provide at least one resource type value.
property

The property name for the resource condition. See Properties: for available names.

propertyvalueThe value of the selected property name.
userImplies that the conditions will be applied to a user.
Properties:
Property nameDescription
@<customproperty>The custom property associated with the resource.
resource.@<customproperty>The custom property associated with the resource.
app.nameThe name of the associated app.
app.owner.@<customproperty>

The custom property associated to the stream of an app. See corresponding owner property for description.

app.owner.email

Owner property associated with the app. See corresponding owner property for description.

app.owner.environment.browser

Owner property associated with the app. See corresponding owner property for description.

app.owner.environment.context

Owner property associated with the app. See corresponding owner property for description.

app.owner.environment.device

Owner property associated with the app. See corresponding owner property for description.

app.owner.environment.ip

Owner property associated with the app. See corresponding owner property for description.

app.owner.environment.os

Owner property associated with the app. See corresponding owner property for description.

app.owner.environment.secureRequestOwner property associated with the app. See corresponding owner property for description.
app.owner.group

Owner property associated with the app. See corresponding owner property for description.

app.owner.nameThe user name of the owner of the resource.
app.owner.userDirectoryThe user directory of the owner of the resource
app.owner.userIdThe user id of the owner of the resource
app.stream.@<customproperty>

Owner property associated with the app. See corresponding owner property for description.

app.stream.nameThe name of the associated stream.
categoryThe system rule category: License, Security, or Sync.
descriptionThe description of the owner retrieved from the user directory.
emailThe email addresses that are available from the connected user directories.
environment.browser

Security rule will be applied to the type of browser. Supported browsers: Chrome, Firefox, Safari, MSIE, or Unknown.

Example 1:  

Define browser and version:

Firefox 22.0

Chrome 33.0.1750.154

Information note If the browser information contains a slash (/), replace it with a space.

Example 2:  

Use the wildcard (*) to include all versions of the browser:

environment.browser like Chrome*

environment.context

Security rule will be applied only to the Qlik Sense environment that the call originates from.

Available preset values: ManagementAccess or AppAccess.

environment.device

Security rule will be applied to the type of device.

Available preset values: iPhone, iPad, or Default.

environment.ipSecurity rule will be applied to an IP number.
environment.os

Security rule will be applied to the type of operating system.

Available preset values: Windows, Linux, Mac OS X or Unknown.

environment.secureRequest

Security rule will be applied to the type of request.

Available preset values: SSL True or False.

groupThe group memberships of the owner retrieved from the user directory.
rolesA role that is associated with the user.
nameThe name of the resource or user.
objectType

The type of app object.

Available preset values: story, masterobject, properties, sheet, dimension.

owner.@<customproperty>The custom property associated with the owner of the resource.
owner.descriptionThe description of the owner retrieved from the user directory.
owner.emailThe email of the owner retrieved from the user directory.
owner.environment.browserThe browser environment of the owner of the resource.
owner.environment.context

Security rule will be applied only to the Qlik Sense environment that the call originates from.

Available preset values: ManagementAccess or AppAccess.

owner.environment.deviceThe device environment of the owner of the resource.
owner.environment.ipThe IP environment of the owner of the resource.
owner.environment.osThe OS environment of the owner of the resource.
owner.environment.secureRequestIndicates if the sent request is encrypted or not, that is using SSL or not (True or False).
owner.groupThe group memberships of the owner retrieved from the user directory.
owner.nameThe user name of the owner of the resource.
owner.userDirectoryThe user directory of the owner of the resource
owner.userIdThe user id of the owner of the resource.
publishedThe status of the app object.
resourceFilterThe existing resource definitions (from the Resource column in the security rules overview).
ruleContextSpecifies where the rule is applied: Both in hub and QMC, Only in hub, or Only in QMC.
stream.@<customproperty>The custom property associated with the stream.
stream.nameThe name of the associated stream.
typeThe type of security rule or data connection.
useridA user’s ID.
userdirectoryThe name of a user directory.
userDirectory.nameThe name of the user directory connection that the user sync task applies to.
userDirectory.userDirectoryNameThe name of the user directory that the user directory connector is connected to.
userDirectoryNameThe name of the user directory connection in the QMC.
Information noteEnvironment data received from external calls, for example, type of OS or browser, is not secured by the Qlik Sense system.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!