Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WIP

In this section, you can find security functions and subroutines frequently used for the Security feature. Please refer to the table below for applicable functions/subroutines.

...

  • All commands must be used with parentheses.

...

Type

...

Format

...

Function Information

Panel
panelIconIdatlassian-warning
panelIcon:warning:
bgColor#FFF0B3
  • All functions must be used with parenthesis.

system.hasPermission

Returns a boolean representing permission assignment of the current user.

Function

system.hasPermission(“Permission Name”)

...

Returns the user’s permission groups.

...

;

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”)

...

Logs on with the provided user information.

...

;

 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.