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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,907
Community Members
 
Community Events
176
Community Groups

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.

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

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

Atlassian Community Events