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.

Warning noteIf you define a rule without specifying at least one Resource or User condition, your rule will apply to all resources and/or users as indicated by (ALL) next to the condition heading.

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 can ungroup them by clicking Ungroup. The default operator between conditions is OR. You can change this in the operator drop-down list. Multiple conditions are grouped so that OR is superior to AND.

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 nameAvailable inDescription
@<customproperty>App, App.Object, DataConnection, ReloadTask, ServerNodeConfiguration, Stream, TaskThe custom property associated with the resource.
resource.@<customproperty> App.Object, ReloadTask The custom property associated with the resource.
app.name App.Object, ReloadTask The name of the associated app.
app.owner.@<customproperty>ReloadTask

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

app.owner.emailReloadTask

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

app.owner.environment.browserReloadTask

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

app.owner.environment.contextReloadTask

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

app.owner.environment.deviceReloadTask

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

app.owner.environment.ipReloadTask

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

app.owner.environment.osReloadTask

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

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

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

app.owner.nameReloadTask The user name of the owner of the resource.
app.owner.userDirectoryReloadTask The user directory of the owner of the resource
app.owner.userIdReloadTask The user id of the owner of the resource
app.stream.@<customproperty> App.Object, ReloadTask

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

app.stream.name App.Object, ReloadTask The name of the associated stream.
categorySystemRuleThe system rule category: License, Security or Sync.
descriptionUserThe description of the owner retrieved from the user directory.
emailUserThe email addresses that are available from the connected user directories.
environment.browserUser

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.contextUser

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

Available preset values: ManagementAccess or AppAccess.

environment.deviceUser

Security rule will be applied to the type of device.

Available preset values: iPhone, iPad or Default.

environment.ipUserSecurity rule will be applied to an IP number.
environment.osUser

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

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

environment.secureRequestUser

Security rule will be applied to the type of request.

Available preset values: SSL True or False.

groupUserThe group memberships of the owner retrieved from the user directory.
rolesUserA role that is associated with the user.
nameApp, App.Object, DataConnection, Extension, License.LoginAccessType, ReloadTask, ServerNodeConfiguration, Stream, User, UserDirectory, UserSyncTask, SystemRule, The name of the resource or user.
objectType App.Object

The type of app object.

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

owner.@<customproperty>App, App.Object, DataConnection, Extension, StreamThe custom property associated with the owner of the resource.
owner.descriptionApp, DataConnection, Extension, StreamThe description of the owner retrieved from the user directory.
owner.emailApp, App.Object, DataConnection, Extension, StreamThe email of the owner retrieved from the user directory.
owner.environment.browserApp, App.Object, DataConnection, Extension, StreamThe browser environment of the owner of the resource.
owner.environment.contextApp, App.Object, DataConnection, Extension, Stream

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

Available preset values: ManagementAccess or AppAccess.

owner.environment.deviceApp, App.Object, DataConnection, Extension, StreamThe device environment of the owner of the resource.
owner.environment.ipApp, App.Object, DataConnection, Extension, StreamThe IP environment of the owner of the resource.
owner.environment.osApp, App.Object, DataConnection, Extension, StreamThe OS environment of the owner of the resource.
owner.environment.secureRequestApp, App.Object, DataConnection, Extension, StreamIndicates if the sent request is encrypted or not, that is using SSL or not (True or False).
owner.groupApp, App.Object, DataConnection, Extension, StreamThe group memberships of the owner retrieved from the user directory.
owner.nameApp, App.Object, DataConnection, Extension, StreamThe user name of the owner of the resource.
owner.userDirectoryApp, App.Object, DataConnection, Extension, StreamThe user directory of the owner of the resource
owner.userIdApp, App.Object, DataConnection, Extension, StreamThe user id of the owner of the resource.
publishedApp.ObjectThe status of the app object.
resourceFilterSystemRuleThe existing resource definitions (from the Resource column in the security rules overview).
ruleContextSystemRuleSpecifies where the rule is to be applied: Both in hub and QMC, Only in hub, or Only in QMC.
stream.@<customproperty>AppThe custom property associated with the stream.
stream.nameAppThe name of the associated stream.
typeSystemRule, DataConnectionThe type of security rule or data connection.
useridUserA user’s ID.
userdirectoryUserThe name of a user directory.
userDirectory.nameUserSyncTaskThe name of the user directory connection that the user sync task applies to.
userDirectory.userDirectoryNameUserSyncTaskThe name of the user directory that the user directory connector is connected to.
userDirectoryNameUserDirectoryThe 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 – please let us know!