-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: User - API
-
None
-
1
-
Severity 3 - Minor
Issue Summary
When sending a DELETE request to the following endpoint:
A 500 error is returned if the API key owner isn't added as a site-admin.
Steps to Reproduce
- Create an API key with a user who is not part of the site-admins group.
- Send a DELETE request to the API endpoint to remove a user from a group.
Expected Results
According to the documentation, a 403 (Forbidden) error should be returned:

Actual Results
While being part of the site-admins group is a requirement as per the documentation:

A 500 error is returned that doesn't provide a clear explanation about why the request failed:
"statusCode": 500, "message": "com.netflix.hystrix.exception.HystrixRuntimeException: RemoveUserFromGroupByAccountIdIdentityPlatformCommand failed and no fallback available."
Workaround
Adding the API owner to the site-admins group resolves the 500 error.
- was cloned as
-
CONFCLOUD-84635 Confluence REST API "Add member to group by groupId" returns generic 500 instead of meaningful error when license pool is depleted
-
- Gathering Impact
-