The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Viewing inactive users with Bitbucket Cloud API

caleb.hoffman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2022

Is there a way to view inactive users (or date of last activity) with the API? If so, which endpoint could be used?

I see there is a user endpoint, but I need something that will display more information to help us manage user accounts.

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Pramodh M
Community Champion
January 25, 2022

Hi @caleb.hoffman 

Welcome to the Community!!

This seems like a no-go here.

The API's available won't serve much data with reference to what you asking since I have gone through the API's below

https://developer.atlassian.com/cloud/bitbucket/rest/api-group-users/#api-group-users

It only Gets the public information!! which is not what we want.

So basically until Atlassian officially releases something with managed accounts structure it's not possible

Thanks,
Pramodh

Mikael Sandberg
Community Champion
January 26, 2022

The user object will show if the account is active, inactive, or closed. This is a new attribute that was just added to the user object, see the announcement here.

Like • caleb.hoffman likes this
0 votes
Answer accepted
Mikael Sandberg
Community Champion
January 25, 2022

Hi @caleb.hoffman,

Welcome to Atlassian Community!

The user endpoint is the closest you can get, and is should return a list of attributes about the user that you can find here. The API for the user is changing in order to improve user privacy. Most of the user end points are moving to Cloud admin end points.

TAGS
AUG Leaders

Atlassian Community Events