Developer Portal for YouTrack and Hub Help

User Resources

The YouTrack REST API doesn't provide resources to work with users or groups. These entities are managed by Hub, and that's why to work with users and groups programmatically, you need to work with the Hub REST API.

For the sake of convenience, we're providing information about Hub user-related resources and endpoints here in a separate section of the YouTrack REST API.

The Hub REST API has endpoints for interacting with all other entities related to access management, including roles, permissions, and organizations. If you’re trying to work with any of these entities, please refer to the Hub REST API.

Resources

Resources for working with users:

Resources for working with groups:

Hub REST API URL

The URL for working with Hub REST API resources differs from that of YouTrack REST API.

The Hub REST API is available at the following URL:

<Hub Service URL>/api/rest/

<Hub Service URL> is the base URL of the Hub service in your network environment.

Here are some examples of Hub REST API URLs for various YouTrack configurations:

URL

Example

Primary YouTrack Service URL

https://www.mycompany.com

Hub Service URL

  • https://www.mycompany.com/hub

or

  • https://hub.mycompany.com

Hub REST API URL

  • https://www.mycompany.com/hub/api/rest

or

  • https://hub.mycompany.com/api/rest

Hub REST API URL example for getting the profile of the current user

  • https://www.mycompany.com/hub/api/rest/users/me

or

  • https://hub.mycompany.com/api/rest/users/me

URL

Example

Primary YouTrack Service URL

  • https://example.youtrack.cloud

or

  • https://example.myjetbrains.com

Hub Service URL

  • https://example.youtrack.cloud/hub

or

  • https://example.myjetbrains.com/hub

Hub REST API URL

  • https://example.youtrack.cloud/hub/api/rest

or

  • https://example.myjetbrains.com/hub/api/rest

Hub REST API URL example for getting the profile of the current user

  • https://example.youtrack.cloud/hub/api/rest/users/me

or

  • https://example.myjetbrains.com/hub/api/rest/users/me

Last modified: 7 November 2024