Project list within the Service Account created limited to 1000 results

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 11.1.0, 11.1.1
    • None
    • 11.01
    • 1
    • Severity 3 - Minor

      Issue Summary

      Can't find all projects in the Resource selection within the Service Account creation.

      Steps to Reproduce

      1. Have more than 1000 projects in the environment
      2. Create a Service Account
      3. On the "Select resources" page, search for projects that, alphabetically, go beyond the 1000 limit

      Expected Results

      The project is found and valid as a search result.

      Actual Results

      No project is returned. When looking at the HAR file, we see that this request is limited to 1000 results:

      • Page request with the limit
      /rest/service-accounts/latest/resources?resource-type-id=project&query=&start=0&limit=1000

      Workaround

      If you need to associate specific projects to an account, you can create the Service Account through Rest, using the following endpoint:

      {{POST /rest/service-accounts/latest/service-accounts }}{{{ "displayName": "My Service Account", }}{{ "scopes": ["READ"], "expiryDuration": 2592000, "resourceRestrictions": [ { "id": "10001", "typeId": "project" }, { "id": "10002", "typeId": "project" } ] }}}

      This will allow you to define the projects, even if the initial search can't find them.

              Assignee:
              Unassigned
              Reporter:
              Benito Picarelli
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: