Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

GetPriv

  • Last UpdatedJul 18, 2023
  • 1 minute read

Checks if the current user has a privilege for a specified area. With this function, you can write your own Cicode functions to control user access to the system.

Syntax

GetPriv(Priv, Area)

Priv

The privilege level (1..8).

Area

The area of privilege (0..255).

Return Value

Returns 1 if the user has the specified privilege in the area, or 0 (zero) if the user does not have the privilege.

SetArea

Example

/* User needs to have privilege 2, or cannot do operation. */

IF GetPriv(2, 0) THEN

! Do operation here

ELSE

Prompt("No privilege for command");

END

See Also

Security Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in