Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting the user groups for all projects via the API. Edited

Hi, I've been tasked with creating a script that will check each project for their individual user groups, and if a particular user group is within that project then do something with that project, whatever that may be, not relavent here.

 

My current solution is recursively step through the paginated projects and check each individual project with an API call each against that specific role, this is slow and hitting rate limiting blocks. Not overly an issue as I could always add some time between the requests, albeit slowing the execution down, but would like to check if there is a better method of acheiving this first before making that step.

 

Let me know if you require more information

Many thanks!

1 answer

0 votes
Prince Nyeche Community Leader Apr 12, 2021

Hi @Harry Krautschneider 

Groups are added to project roles, so are you checking the roles used by users on the project or you're keen on the roles or groups on the permission scheme? Although for any API call to Jira, it is good you limit your request to 2 concurrency per minute as you won't be able to increase it any further even if you tried as there are rate limiters on cloud instances to avoid disruption of services.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you