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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Atlassian License Management with REST API

Hello everyone!

I'm hoping to get some answers here, for myself and others.


Use Case:

-Automate license removal of users who have been inactive for 30 days.

-Preferably, check each of the user's product licenses, then remove whichever one has been inactive for over 30 days.


-I'm using an automation suite to run on a daily schedule and remove licenses based on the use case above.

Help needed:

Are there any REST API calls/examples/documentation that can help accomplish:

-Get a user's assigned license(s)

-Checks for last user activity on a given license


Thank you everyone for your attention and support!



1 answer

I've been doing more research and for the looks of it, there don't appear to be any APIs that can do what I'm asking. However, I'm thinking this route might work...

Bare with me as I am relatively new to this:

An admin can assign or remove a product license from a user in different ways:

  1. Admin Page  > Directory > Users > Select User > Assign Product License
    (Keep in mind, that this adds the users to the system-default groups such as confluence-users, jira-software-users, jira-servicemanagement-users, jira-administrators, etc.)
  2. Another option is to simply add the user directly to the groups mentioned above.

With that being said.. I think I can still accomplish the license management automation that I initially stated. This is how:

  1. Get all inactive users
  2. For each user
    • Get all groups
      • If found in any of the product license groups
        • remove from group

Again this is still a concept and I have to develop it. I'm still unsure of how to determine if the user was inactive for one product but not the other.

I will keep updating.


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events