Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I export our instance's users and licenses with the Last seen on parameter via api?

Guilherme-A Silva February 27, 2024

I have a script for license removal that I validate the last seen of the user, when the user has no activity for more than x days I make a rest api request to remove the user from a group (default group of licenses, for example confluence-users).

But when I'm going to run this script, I need to export the CSV manually, put it in my specific folder and trigg my script manually.

My desire/project is to create a service for this automation to run once, twice a week without manual intervention.

1 answer

0 votes
Marc Koppelaar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2024

Hi @Guilherme-A Silva 

There are options on the user management API to deactivate or delete an account by account ID, this on the User Management API.

On the default Cloud API you can get users, but I can't see and last seen info

Some both don't have options in relation to last seen.

There is an open feature request for this, see; ID-8074 

You could try to get more info via raising an issue at Atlassian Support.


Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events