Skip to content

Script Functions for Identity and Access Management

Identity and Access Management Function Information

All functions must be used with parenthesis.

system.hasPermissionReturns a boolean representing permission assignment of the current user.
Functionsystem.hasPermission("Permission Name");
DescriptionChecks 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 return 0.
system.loginLogs on with the provided user information.
Functionsystem.login("UserID", "Pasword");
DescriptionAttempts 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.logoutLogs out the current user.
Functionsystem.logout();
DescriptionLogs out the currently logged-in user. If no user is logged in, no error will pop up.