-
Bug
-
Resolution: Unresolved
-
Medium
-
6
-
Minor
-
42
-
Issue Summary
The error message returned while trying to add users to the project role via the Set actors for project role returns username in the response body if one or more of the users in the request body is/are suspended/disabled. Since our customers don't have access to usernames, while adding multiple users at once, the error message is confusing and brings no actual value.
Please note that by "username" we don't mean (for instance) "John Cusack" but rather a numeric ID from the database.
Steps to Reproduce
Send a PUT request to the Set actors for project role endpoint, while making sure the request body (JSON) includes the following (sample) schema:
{ "categorisedActors": { "atlassian-user-role-actor": ["<account_id>"], "atlassian-group-role-actor-id": ["<group_id>"] } }
Expected Results
The <account_id> returned in the error message (response body) matches the <account_id> sent in the request body.
Actual Results
"We can't find '<username>' in any accessible user directory. Check they're still active and available, and try again."
Workaround
As of now, the only workaround is to add users one at a time to verify which account is causing the request to fail.