Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL USER MANUAL VERSIONS

Ignition 8.1
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

The following feature is new in Ignition version 8.0.2
Click here to check out the other new features
This function is used in Python Scripting.

Description

Checks if the user in the current session is authorized against a target collection of security levels.

Syntax

system.perspective.isAuthorized(isAllOf, securityLevels)

  • Parameters

Boolean isAllOf - True if the current user must have all of the given security levels to be authorized. False if the current user must have at least one of the given security levels to be authorized.

String[] securityLevels - An array of string paths to a security level node in the form of "Path/To/Node". Each level in the tree is delimited by a forward slash character. The public node is never a part of the path.

  • Returns

True if the user in the current session is authorized, false otherwise.

  • Scope

Perspective Session

Code Examples
Code Snippet
#  returns true if the current user has either Administrator or Baz
#  returns false if they have neither
path1 = "Authenticated/Roles/Administrator"
path2 = "Foo/Bar/Baz"
isAuthorized = system.perspective.isAuthorized(False, [path1, path2])
Keywords

system perspective isAuthorized, perspective.isAuthorized

  • No labels