Hello.
I have a python script that I use to deactivate users periodically.
Suddenly it stops to work, I still can get a list of all the registered users but when I try to deactivate any of them I got the following message:
Error Deactivating USERNAME: JiraError HTTP 401 url: https://my_url/admin/rest/um/1/user/deactivate?username=USERNAME
text: User failed to authenticate
I am a administrator, I was using email/password but even when changed to email/token I got the same error.
The script is simple like that:
jira = JIRA(basic_auth=(atlassianEmail, atlassianToken),
#options={'server': 'https://my_url'})
jira.deactivate_user(USERNAME)
Do anyone have any ideas?