I am trying to write a user management script which uses the JIRA user's own permissions to determine whether or not they can delete a user. I have been trying to make delete requests to /user?username=USERNAME trying both Basic Auth and logging in<code> via /rest/auth/1/session. What is the proper process for deleting a user from JIRA? The Documentation says that this method is experimental, so any help is appreciated.
Best,
Tom Judd