find last login date for bitbucket users

Rodney Sawyer Community Champion Jan 03, 2017

I am trying to find inactive users in Bitbucket.  People request access and then look at it once or never end up using it, but now that license is tied up.  So I want to get a list all licensed users and the last time they logged into Bitbucket.  

1 answer

Click on the "Users" link on the "Administration" screen (upper-left).   There is a "Last Authenticated" column there.  I'm not sure when it showed up, but it's there for Bitbucket 4.11:

users.png

 

Another approach would be to use the REST api.  The regular "rest/api/1.0/users" API does not have the "last authenticated" data, but the "rest/api/1.0/admin/users" variant does!   Feel free to try the following example using my demo server (login against http://vm.bit-booster.com/bitbucket beforehand as "test" with pw "test" first).  Here's an example GET call against "rest/api/1.0/admin/users":  http://vm.bit-booster.com/bitbucket/rest/api/1.0/admin/users?limit=1000

 

p.s.  I invite you to try my Bitbucket add-on:  Bit-Booster for Bitbucket Server

 

 

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

635 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot