-
Bug
-
Resolution: Timed out
-
Medium
-
None
-
3
-
Severity 3 - Minor
-
Issue Summary
I am using the REST API call to add a user to a group (here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-user-post\). When the specified user is already a member of the specified group, the REST API call fails, as expected. However, the returned HTTP error is 400, and the HTTP response contains one error message that is not documented.
So there are two problems here:
1. The group name is not present in the error message
2. The documentation for the 400 error says that it happens if:
- group name is not provided.
- accountId is missing.
Steps to Reproduce
- Step 1 Use the REST API call to add a user to a group (here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-user-post\).
- Step 2 When the specified user is already a member of the specified group, the REST API call fails, as expected.
Expected Results
- The error message should be the group name instead of the group ID on which the user already exists.
- The error that happened to me is not documented which should have been documented.
Actual Results
- The error message is not documented.
However, the returned HTTP error is 400, and the HTTP response contains one error message:
"Cannot add user. User is already a member of '{1}'".
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available