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

Atlassian License Management with REST API

Tony Hernandez July 20, 2022

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.

How:

-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!

-Tony

 

1 answer

0 votes
Tony Hernandez July 20, 2022

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.

-Tony

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events