User licensing API?

Hi,
We are letting all users from our Google Workspace automatically acquire a JIRA license to access our JIRA projects to view tickets. However a lot of our users only visit JIRA once and no more meaning we have a lot of inactive users.
Right now we have to manually remember to go into the users list and remove the product access as a JIRA license is very expensive and there is no way to “automatically remove a user after a certain time of inactivity”.

Is there a way to access all JIRA users and their licenses through an API and through that API remove their access?

or is there a way to disable users in bulk with for instance a file upload or similar?

Hello @Trax

If you Google “jira cloud rest api remove user” you’ll find the answer… you remove a user’s access to Jira via the Delete User API endpoint.

Hi @sunnyape ,
Thanks for your response. That looks very promising. The only question left is, how do you know if someone is inactive?
As as far as I see, there isn’t any information about when they last logged in. Only one “active” flag without much context.

As as far as I see, there isn’t any information about when they last logged in. Only one “active” flag without much context.

Yep, that’s exactly correct.

Google “How can I find when a user last logged in using Jira Cloud’s REST API?” and “How can I find when a user is inactive using Jira Cloud’s REST API?” you will find the answers to those frequently asked questions too.

Have fun on your learning journey!