Skip to content
Community forum

GET list returns [] for a domain admin

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

Logged in as domain admin. The records exist in another project. GET /api/v1/crud/acme/customer returns [].

Link

1 answer

Accepted answer
Accepted answer

A GET list is scoped to the project in your token, which for a new account is default-project, even for a domain admin. The project and tenant query parameters can narrow that scope but never widen it. Either log in naming the other project (project on POST /api/v1/auth/login) or switch with POST /api/v1/auth/switch-project. To read across the whole domain, use POST /api/v1/crud/{domain}/list-bulk with {"type": "customer", "fq_name_prefix": ["acme"]}.

Logging in with a project name that doesn't exist puts you in the default project, so check the name. GET /api/v1/auth/session shows the scope you actually have.

Supero Platform teamSupero team answered
Link

Your answer

GET list returns [] for a domain admin | Supero Community