User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Skip to end of metadata
Go to start of metadata


This function is used by Ignition's Expression language.

Description

This function is only available for Security Level Rules and User Attribute Mapping.

This function checks to see if any of the listed elements are present in the collection object. The function requires at least two arguments, a collection and an element.

Syntax

containsAny(collection, element0, [elementN])

  • Parameters

Object collection - A collection of values. Typically from the {security-zone} object or the {idp-attribute:X} object.

String element - One or more comma separated elements to look for.

  • Results

Boolean - True if the collection object contained any of the listed elements; false if otherwise.

Examples
Code Snippet
// Returns true for a login attempt against an Ignition IdP, if the user has either the Administrator or Operator roles.
containsAny({attribute-source:idTokenClaims:roles}, 'Administrator', 'Operator')
Code Snippet
// Returns true for a login attempt if the login location is in at least one of the specified security zones.
containsAny({security-zones}, 'site 1', 'mill', 'offshore')
  • No labels