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