You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetching tenants with firebaseAuth.getTenantManager().listTenants(null) does not return a PageToken even though more pages exist. There is no possibility to page through all tenants.
When viewing the tenants in the GCP Identity Platform, the same request is used with a page size of 2147483647. However, the admin sdk prevents requesting a page size over 100 (FirebaseTenantClient.MAX_LIST_TENANTS_RESULTS).
Please either remove the page size restriction in the sdk or fix pagination with page token of tenants
Hello i would love to investigate this and help fix the pagination behavior it is having and has this been triaged yet or is it safe for me to start looking into a PR for this ?
Activity
siddharthmohan619-eng commentedon Mar 9, 2026
Hello i would love to investigate this and help fix the pagination behavior it is having and has this been triaged yet or is it safe for me to start looking into a PR for this ?
Klompara commentedon Mar 9, 2026
@siddharthmohan619-eng I'm not sure if anyone is on it yet, however I think I've already found the error.
The sdk expects this response: ListTenantsResponse
However the actual response has this format:
{ "tenants": [...], "nextPageToken": "..." }pageTokenhas to be changed tonextPageTokensiddharthmohan619-eng commentedon Mar 9, 2026
@Klompara yes as then it will not return null and when u validate it there will be one more issue u fix it
k2: "nextPageToken", v2: "PAGE_TOKEN"