-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 11.1.0, 11.1.1
-
Component/s: User Management - Others
-
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
- Have more than 1000 projects in the environment
- Create a Service Account
- 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.