User Functions

User Functions

This section contains functions that enable users to handle users.

Functions summary

  • userKeyToDisplayNameReturns the display name for the provided user key.
  • getUserGets the user by username or key.
  • accountIdToDisplayNameReturns the display name for the provided user key.
  • currentUserReturns the key for the user that invoked the script containing currentUser.
  • currentUserKeyReturns the key for the user that invoked the script containing currentUserKey.
  • currentUsernameReturns the username for the user that invoked the script containing currentUsername.
  • getAllActiveUsersReturns a list of all active users in Jira.
  • getAllInactiveUsersReturns a list of all inactive users in Jira.
  • getAllUsersReturns a list of usernames for all active and inactive users in Jira.
  • userGroupsReturns the groups the selected user belongs to.
  • getUserByEmailGets the user by email address.
  • getUserByFullNameGets the user by full name.
  • getUserDirectoryNameReturns the directory name the user belongs to.
  • getUserPropertyRetrieves properties of users.
  • hasPermissionChecks if a user has the specified permission.
  • hasUserPropertyChecks if the user has the given property set.
  • isAnyUserAuthenticatedVerifies if there is a logged in user.
  • isTeamLeaderVerifies if the specified user is a team leader on the project (if it is a component lead).
  • isUserActiveChecks to see if the given user has an active (licensed) account.
  • isUserAdminDetermines if a provided user has administration privileges in the current Jira environment.
  • isUserInRoleReturns "true" if the user has a certain role on the specified project.
  • runAsAssumes a user when running a script.
  • setUserPropertySets properties of users.
  • userEmailAddressReturns the email address of the selected user. The email address may be needed to supply it to various external systems.
  • userExistsVerifies if the selected user is registered Jira user.
  • userFullNameReturns the full name (firstname, lastname) of the user.
  • userHasAccessToCommentVerifies if a comment is visible for an user.
  • userHasCoreAccessVerifies if a user has access to the Jira Core application.
  • userHasServiceDeskAccessVerifies if a user has access to the Jira Service Desk application.
  • userHasSoftwareAccessVerifies if a user has access to the Jira Software application.
  • userInGroupVerifies if the selected user is in the selected group(s).
  • userKeyToUsernameReturns the username for the provided user key.
  • userLanguageReturns the language for an user.
  • userLocaleReturns the locale for a user.
  • usernameToUserKeyReturns the user key / account id for the provided username.
  • userRolesReturns the roles of the provided user in the project.
  • usersInGroupsReturns a list of users common to all the specified groups.
  • usersInRoleReturns the users that corespond to a certain role on the specified project.



Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.