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,298,076
Community Members
 
Community Events
165
Community Groups

How can i delete all unverified users in opsgenie via API?

I have 30-40 unverified users, and delete one by one a very long time...

2 answers

We actually wrote a script to do this every 6 months.  When you pull down a list of all users, verified should be a field you could sort on from the payload (example payload).  Then just delete that subset of users through the API.

Hi, can you pls send an example script?

1 vote
Hana Kučerová Community Leader Aug 08, 2021

Hi @Pavel Korostelev ,

welcome to the Atlassian Community!

It looks like there's REST API endpoint for this, see here, section Delete User.

Please be aware I've never tested it myself.

Hi @Hana Kučerová  i need delete 40 unverified users by one click (one curl run)

Hana Kučerová Community Leader Aug 09, 2021

Hi @Pavel Korostelev ,

I don't think that's possible, I didn't find any endpoint for bulk delete.

You would probably need to:

  • send GET request to get all unverified users
  • go through all the unverified users
    • send DELETE request for each user 
Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

147 views 1 3
Read article

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