Represents a page of tenants fetched from a Firebase project.
Provides methods for traversing tenants included in this page, as well as retrieving
subsequent pages of tenants. The iterator returned by iterate_all() can be used to iterate
through 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 project
starting from this page. The iterator will never buffer more than one page of tenants
in 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 of ExportedUserRecord 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 about
GCIP including pricing and features, see https://cloud.google.com/identity-platform.
Before multi-tenancy can be used in a Google Cloud Identity Platform project, tenants must be
enabled in that project via the Cloud Console UI. A Tenant instance provides information
such 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 contain
only 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-in
provider (optional).
enable_email_link_sign_in – A boolean indicating whether to enable or disable email link
sign-in (optional). Disabling this makes the password required for email sign-in.
Retrieves a page of tenants from a Firebase project.
The page_token argument governs the starting point of the page. The max_results
argument 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, this
returns an empty page.
Parameters:
page_token – A non-empty page token string, which indicates the starting point of the page
(optional). Defaults to None, which will retrieve the first page of users.
max_results – A positive integer indicating the maximum number of users to include in the
returned 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-in
provider.
enable_email_link_sign_in – A boolean indicating whether to enable or disable email link
sign-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 2023-09-26 UTC."],[],[]]