User Functions

User Functions

This section contains functions that enable users to handle users.

Functions summary

  • accountIdToDisplayName β€” Returns the display name for the provided user key.
  • currentUser β€” Returns the key for the user that invoked the script containing currentUser.
  • currentUserKey β€” Returns the key for the user that invoked the script containing currentUserKey.
  • currentUsername β€” Returns the username for the user that invoked the script containing currentUsername.
  • getAllUsers β€” Gets all the users. Active accounts only
  • getUser β€” Gets the user by username or key.
  • getUserByEmail β€” Gets the user by email address.
  • getUserByFullName β€” Gets the user by full name.
  • getUserPropertiesKeys β€” Retrieves a list of properties keys.
  • getUserProperty β€” Retrieves properties of users.
  • isAnyUserAuthenticated β€” Verifies if there is a logged in user.
  • isTeamLeader β€” Verifies if the specified user is a team leader on the project (if it is a component lead).
  • isUserInRole β€” Returns "true" if the user has a certain role on the specified project.
  • runAs β€” Assumes a user when running a script.
  • setUserProperty β€” Sets properties of users.
  • userCurrentDate β€” Returns the user current locale date
  • userEmailAddress β€” Returns the email address of the selected user. The email address may be needed to supply it to various external systems.
  • userExists β€” Verifies if the selected user is registered Jira user.
  • userFullName β€” Returns the full name (firstname, lastname) of the user.
  • userGroups β€” Returns the groups the selected user belongs to.
  • userHasAccessToComment β€” Verifies if a comment is visible for an user.
  • userInGroup β€” Verifies if the selected user is in the selected group(s).
  • userKeyToUsername β€” Returns the username for the provided user key.
  • userLanguage β€” Returns the language for an user.
  • usernameToAccountId β€” Returns the account id for the provided username.
  • usernameToUserKey β€” Returns the user key / account id for the provided username.
  • userRoles β€” Returns the roles of the provided user in the project.
  • usersInGroups β€” Returns a list of users common to all the specified groups.
  • usersInRole β€” Returns the users that corespond to a certain role on the specified project.
  • userTimezone β€” Returns the user time-zone.

Can’t find what you are looking for? There are many more user functions in the User Administration section.

Β 

Need support? Create a request with our support team.

Copyright Β© 2005 - 2025 Appfire | All rights reserved.