used delete user api but it is still giving the user access to site.
https://******.atlassian.net/rest/api/3/user?accountId=5**********************b
status: 204 but still the user has access to site.
I am able to delete user in UI but unable to remove them using rest api.
Thanks in advance.
How to trigger the switch “Has access on site” via API in Administration > Users > User details in Access section?
We want to disable certain users access but still want to keep the user disabled in the system for next 90days(as per our policy) and in order to reassign users issues,filters… before we delete the user.
I referred to JIRA Cloud Developer REST API documentation.
I tried:
$url = “JIRA_url/user?accountId=yyy”
$body = @{
active = “False”
}
Invoke-RestMethod -Method PUT -Uri $url -Body $body
I simplified the code above to make it easier. I got the error:
Invoke-RestMethod : The remote server returned an error: (405) Method Not Allowed
Hi @ayushi
A couple of possibilities with your question :
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join PM Evangelist, Axel Sooriah, & Product Ops. Consultant & Advisor, Jenny Wanger, as they unpack the role of product ops and discuss key takeaways in Atlassian’s ‘The Product Ops Mission’ guide. They’ll answer your questions live on May 6 at 9:00am PT.
Register here ⬇️Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.