Skip to content

Commit

Permalink
Methods user_deactivate and user_disable revoked.
Browse files Browse the repository at this point in the history
We are waiting new feature in REST API: https://jira.atlassian.com/browse/JRASERVER-44801
  • Loading branch information
Ilya Sapunov committed Jun 5, 2019
1 parent 9185927 commit c476ae5
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,29 +191,6 @@ def user_update_email(self, username, email):
data = {'name': username, 'emailAddress': email}
return self.user_update(username, data=data)

def user_deactivate(self, username):
"""
Disable user
:param username:
:return:
"""
url = 'secure/admin/user/EditUser.jspa'
headers = self.form_token_headers
user = self.user(username)
user_update_info = {
'inline': 'true',
'decorator': 'dialog',
'username': user['name'],
'fullName': user['displayName'],
'email': user['emailAddress'],
'editName': user['name']
}
return self.post(data=user_update_info, path=url, headers=headers)

def user_disable(self, username):
"""Override the disable method"""
return self.user_deactivate(username)

def user_disable_throw_rest_endpoint(self, username, url='rest/scriptrunner/latest/custom/disableUser',
param='userName'):
"""The disable method throw own rest enpoint"""
Expand Down

0 comments on commit c476ae5

Please sign in to comment.