title: Bitbucket API: Add default reviewers using usernames
body: <p>On-prem server Bitbucket 6.10.</p>
  
  <p>Referring to the <a href="https://docs.atlassian.com/bitbucket-server/rest/7.1.2/bitbucket-default-reviewers-rest.html#idp2" rel="nofollow noreferrer">API</a> for adding default reviewers for a project.</p>
  
  <p>POST Request:</p>
  
  <pre><code>https://git.company.net/rest/default-reviewers/1.0/projects/test-project/condition
  </code></pre>
  
  <p>Body:</p>
  
  <pre><code>{"sourceMatcher":{"id":"any","type":{"id":"ANY_REF"}}, "targetMatcher":{"id":"any","type":{"id":"ANY_REF"}}, "reviewers":[{"name": "p950a", "slug": "p950a", "id": 56111},{"name": "p950h", "slug": "p950h", "id": 45222}], "requiredApprovals":"0"}
  </code></pre>
  
  <p>It seems it's mandatory to pass "id" for each reviewer - "slug", "name" don't seem to work. I get the following error if "id" is excluded.</p>
  
  <pre><code>{
    "errors": [
      {
        "context": null,
        "message": "No user exists for identifier -1.",
        "exceptionName": "com.atlassian.bitbucket.validation.ArgumentValidationException"
      }
    ]
  }
  </code></pre>
  
  <p>It's quite inefficient and tedious to retrieve IDs for several users, store them and then again iterate over that list to pass here. Is there a better way to do this or am I missing something?</p>