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.
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!
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah yes. You would need to Verify your Domain first. And then you'll be able to manage the users within your domain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.