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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.