Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to search for bitbucket users only using Atlassian API

Robert Koncier July 17, 2019

Using '/rest/api/3/user/search' rest api call, I'm able to search for users but I don't know how to get users which are active in Bitbucket only? Is there chance to set a query for that? 

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2019

Hi @Robert Koncier,

I see the question is tagged with Bitbucket Cloud, but looking at the REST endpoint you refer to I'm guessing you're rather asking about Bitbucket Server – can you please confirm this?

Cheers,
Daniil

Robert Koncier July 17, 2019

Hi Daniil,

it is question for Bitbucket Cloud. I tried to find api call to get all Bitbucket cloud user for our organization but I didn't find any option (https://developer.atlassian.com/bitbucket/api/2/reference/search?q=user).

Later I thought it can be thru id.atlassian.com api, where is method to search for users but it looks like these are JIRA users only. https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-group-Users 

Is there any other API? Not sure how and if Bitbucket Cloud is integrated with all other Atlassian APIs.

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2019

Hi  @Robert Koncier,

Ok, sorry I got confused by the path pattern of the REST endpoint you mentioned cause it looked more like a Bitbucket Server one.

Unfortunately there's no easy way to match users between Jira and Bitbucket at the moment, and no means to get any metadata on user activity in Bitbucket.

There's still a REST endpoint which lists members of a workspace, but it doesn't answer a question whether the users are actively using Bitbucket.

Hope this helps.

Cheers,
Daniil

Robert Koncier July 18, 2019

Thanks Daniil,

yes probably it is the best other option - get members of workspace. Going to try.

Thanks

Robert

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events