Issue Summary
There is an issue when using a PATCH request (REST API 2.0) on a user. The problem is that when a user is updated via patch the user loses their API token.
Reproduces against https://alignsupport.jiraalign.com
Steps to Reproduce
- I used my own account for this purpose. userid is 661675
- My API token prior to it being removed was
Mpxg6+4Y(U<`ynh[z_:Dips`Y&l5BeGOJId)RwXs - I ran the following API call to change the start date for my user account:
curl --request PATCH --url https://alignsupport.jiraalign.com/rest/align/api/2/Users/661675 --header 'authorization: Bearer Mpxg6+4Y(U<`ynh[z_:Dips`Y&l5BeGOJId)RwXs' --header 'content-type: application/json' --data '[ { "op":"replace", "path": "/userStartDate", "value": "2020-04-01T00:00:00Z" } ]'
Expected Results
User info is updated, but, API token should remain.
Actual Results
I checked my user account's profile after making the API change, and noticed that the API token had disappeared:
Workaround
The affected user will need to re-generate a new API token to continue using API 2.0 against Jira Align
- resolves
-
PS-67962 You do not have permission to view this issue
Thank you for your patience! This issue was fixed in the Jira Align 10.83 release that was deployed to cloud test environments on November 7, 2020.
-Kyle