Jira Data Center icon

Jira Data Center

Interact with Jira Data Center API

Actions16

User → Get

AI-generated

Overview

This node integrates with the Jira Data Center API to retrieve user information. Specifically, the "User" resource with the "Get" operation allows you to fetch details about a specific user by their username or, if no username is provided, to get information about the currently authenticated user.

Common scenarios where this node is beneficial include:

  • Automating workflows that require user profile data from Jira.
  • Fetching current user details for auditing or logging purposes.
  • Integrating Jira user information into other systems or dashboards.

For example, you can use this node to get the email, display name, and account ID of a Jira user by specifying their username, or simply retrieve your own user details without providing a username.

Properties

Name Meaning
Authentication Method used to authenticate with Jira Data Center API. Options: Personal Access Token, Basic Auth
Username The username of the Jira user to retrieve information for. Leave empty to get current authenticated user's info

Output

The node outputs JSON data containing the user information retrieved from Jira. The structure corresponds to the Jira Data Center API's user object, which typically includes fields such as:

  • self: URL to the user resource.
  • key: User key (may be deprecated in some Jira versions).
  • accountId: Unique identifier for the user.
  • name: Username (may be omitted depending on Jira version).
  • emailAddress: User's email address.
  • displayName: Full name of the user.
  • active: Boolean indicating if the user is active.
  • Other metadata fields related to user groups, time zone, locale, etc.

No binary data output is produced by this node.

Dependencies

  • Requires access to a Jira Data Center instance.
  • Requires an API authentication credential configured in n8n, either a personal access token or basic authentication credentials.
  • The node uses the Jira REST API endpoints /rest/api/2/user (with query parameter username) or /rest/api/2/myself to fetch user data.

Troubleshooting

  • Authentication errors: Ensure that the API credentials are valid and have sufficient permissions to access user information.
  • User not found: If a username is specified but does not exist, the API will return an error. Verify the username spelling and existence.
  • Empty username field: Leaving the username empty returns the current authenticated user's info. If this fails, check that the credentials correspond to a valid user.
  • API request failures: Network issues or incorrect Jira server URLs can cause request failures. Confirm the Jira server URL is correct in the credentials.
  • Error messages: Errors from the Jira API are wrapped and presented as Jira Data Center API request failed: <error message>. Review the message for details and adjust parameters or credentials accordingly.

Links and References

Discussion