User Functions

User Functions

This section contains functions that enable users to handle users.

Functions summary

  • 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.
  • getAllUsersGets all the users. Active accounts only
  • getUserGets the user by username or key.
  • getUserByEmailGets the user by email address.
  • getUserByFullNameGets the user by full name.
  • getUserPropertiesKeysRetrieves a list of properties keys.
  • getUserPropertyRetrieves properties of users.
  • 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).
  • isUserInRoleReturns "true" if the user has a certain role on the specified project.
  • runAsAssumes a user when running a script.
  • setUserPropertySets properties of users.
  • userCurrentDateReturns the user current locale date
  • 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.
  • userGroupsReturns the groups the selected user belongs to.
  • userHasAccessToCommentVerifies if a comment is visible for an user.
  • 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.
  • usernameToAccountIdReturns the account id for the provided username.
  • 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.
  • userTimezoneReturns the user time-zone.

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



Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.