Issue Summary
API v2.0 : whoami API call results in 401 Unauthorized error for non-Super Admin users
Steps to Reproduce
Pre-requisites:
- API 2.0 feature toggle ID 92 must be enabled
- User's API token must be valid
- User's RoleID must be other than 9 (Super Admin)
Steps
- By using some API client, make an API call to https://instance.agilecraft.com/rest/align/api/2/Users/whoami
Actual Results
- A 401 Unauthorized error code is returned.
Expected Results
- A 200 OK status code with the corresponding data of the authorised user.
Workaround
- Use UI instead of API