Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable External Jira Cloud Users Via API

Sean Marraffa April 7, 2020

I would like to query an API to determine if a user has logged in or not. If they have never logged in or have not logged in after a certain amount of time, I would like to deactivate the account. 

I found this link https://jira.atlassian.com/browse/ID-6517?focusedCommentId=1931337&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1931337 that describes a process but my organization has not verified our domain and the majority of our users do not have match our domain in their email addresses. 

What is the best way to accomplish this? What API should I be referencing? I am currently able to access this API no problem https://developer.atlassian.com/cloud/jira/platform/rest/v3/ but it does not seem to offer the information that I am looking for nor does it have the ability to deactivate the users. 

Any guidance would be much appreciated.

1 answer

0 votes
Hazwan Ariffin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2020

The API that you're looking for is actually this:

Make sure you are the org admin in order for you to run this API. It would needs your org token and org id, to be able to run this.

Have a read of the guide and give it a try!

Sean Marraffa April 8, 2020

Thanks for the answer, I looked into this but when I tried to get a list of users the array came back as empty. I assume this is because we have not verified our domain and we do not have any managed users.

Do you know if there is a way around verifying the domain?

Hazwan Ariffin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2020

Ah yes. You would need to Verify your Domain first. And then you'll be able to manage the users within your domain

Suggest an answer

Log in or Sign up to answer