/
Script Functions for Identity and Access Management

Script Functions for Identity and Access Management

Function Information

  • All functions must be used with parenthesis.

Β 

system.hasPermission

Returns a boolean representing permission assignment of the current user.

Function

system.hasPermission(β€œPermission Name”);

Description

Checks to see if the currently logged-in user has the provided Permission Name.

If the user is assigned the permission, the function returns 1. If the user is not assigned the permission, it returns 0.

Β 

system.login

Logs on with the provided user information.

Function

system.login(β€œUserID”, β€œPassword”);

Β Description

Attempts to log in to a user with the provided UserID and Password. If the user does not have a password, only a blank Password (β€œβ€œ) may be provided, or the parameter must be left out. If an incorrect UserID or Password is given, no error will pop up, but no user will be logged in.

Β 

system.logout

Logs out the current user.

Function

system.logout();

Β Description

Logs out the currently logged-in user. If no user is logged in, no error will pop up.

Β 

Back to Top of Script Functions Identity and Access Management

Related content