Logged in as domain admin. The records exist in another project. GET /api/v1/crud/acme/customer returns [].
GET list returns [] for a domain admin
Common question, written up by the Supero team.
Linkrev 1
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.
Linkrev 1
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer