Represents a page of tenants fetched from a Firebase project.
Provides methods for traversing tenants included in this page, as well as retrievingsubsequent pages of tenants. The iterator returned byiterate_all() can be used to iteratethrough all tenants in the Firebase project starting from this page.
get_next_page()
Retrieves the next page of tenants, if available.
Returns:
Next page of tenants, or None if this is the last page.
Returned iterator will iterate through all the tenants in the Firebase projectstarting from this page. The iterator will never buffer more than one page of tenantsin memory at a time.
Returns:
An iterator of Tenant instances.
Return type:
iterator
propertyhas_next_page
A boolean indicating whether more pages are available.
propertynext_page_token
Page token string for the next page (empty string indicates no more pages).
propertytenants
A list ofExportedUserRecord instances available in this page.
Tenant
classfirebase_admin.tenant_mgt.Tenant(data)
Bases:object
Represents a tenant in a multi-tenant application.
Multi-tenancy support requires Google Cloud Identity Platform (GCIP). To learn more aboutGCIP including pricing and features, seehttps://cloud.google.com/identity-platform.
Before multi-tenancy can be used in a Google Cloud Identity Platform project, tenants must beenabled in that project via the Cloud Console UI. A Tenant instance provides informationsuch as the display name, tenant identifier and email authentication configuration.
display_name – Display name string for the new tenant. Must begin with a letter and containonly letters, digits and hyphens. Length must be between 4 and 20.
allow_password_sign_up – A boolean indicating whether to enable or disable the email sign-inprovider (optional).
enable_email_link_sign_in – A boolean indicating whether to enable or disable email linksign-in (optional). Disabling this makes the password required for email sign-in.
Retrieves a page of tenants from a Firebase project.
Thepage_token argument governs the starting point of the page. Themax_resultsargument governs the maximum number of tenants that may be included in the returned page.This function never returns None. If there are no user accounts in the Firebase project, thisreturns an empty page.
Parameters:
page_token – A non-empty page token string, which indicates the starting point of the page(optional). Defaults toNone, which will retrieve the first page of users.
max_results – A positive integer indicating the maximum number of users to include in thereturned page (optional). Defaults to 100, which is also the maximum number allowed.
Updates an existing tenant with the given options.
Parameters:
tenant_id – ID of the tenant to update.
display_name – Updated display name string for the tenant (optional).
allow_password_sign_up – A boolean indicating whether to enable or disable the email sign-inprovider.
enable_email_link_sign_in – A boolean indicating whether to enable or disable email linksign-in. Disabling this makes the password required for email sign-in.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-12 UTC."],[],[]]