UserImportRecord interface Stay organized with collections Save and categorize content based on your preferences.
Interface representing a user to import to Firebase Auth via theBaseAuth.importUsers() method.
Signature:
exportinterfaceUserImportRecordProperties
| Property | Type | Description |
|---|---|---|
| customClaims | { [key: string]: any; } | The user's custom claims object if available, typically used to define user roles and propagated to an authenticated user's ID token. |
| disabled | boolean | Whether or not the user is disabled:true for disabled;false for enabled. |
| displayName | string | The user's display name. |
| string | The user's primary email, if set. | |
| emailVerified | boolean | Whether or not the user's primary email is verified. |
| metadata | UserMetadataRequest | Additional metadata about the user. |
| multiFactor | MultiFactorUpdateSettings | The user's multi-factor related properties. |
| passwordHash | Buffer | The buffer of bytes representing the user's hashed password. When a user is to be imported with a password hash,UserImportOptions are required to be specified to identify the hashing algorithm used to generate this hash. |
| passwordSalt | Buffer | The buffer of bytes representing the user's password salt. |
| phoneNumber | string | The user's primary phone number, if set. |
| photoURL | string | The user's photo URL. |
| providerData | UserProviderRequest[] | An array of providers (for example, Google, Facebook) linked to the user. |
| tenantId | string | The identifier of the tenant where user is to be imported to. When not provided in anadmin.auth.Auth context, the user is uploaded to the default parent project. When not provided in anadmin.auth.TenantAwareAuth context, the user is uploaded to the tenant corresponding to thatTenantAwareAuth instance's tenant ID. |
| uid | string | The user'suid. |
UserImportRecord.customClaims
The user's custom claims object if available, typically used to define user roles and propagated to an authenticated user's ID token.
Signature:
customClaims?:{[key:string]:any;};UserImportRecord.disabled
Whether or not the user is disabled:true for disabled;false for enabled.
Signature:
disabled?:boolean;UserImportRecord.displayName
The user's display name.
Signature:
displayName?:string;UserImportRecord.email
The user's primary email, if set.
Signature:
email?:string;UserImportRecord.emailVerified
Whether or not the user's primary email is verified.
Signature:
emailVerified?:boolean;UserImportRecord.metadata
Additional metadata about the user.
Signature:
metadata?:UserMetadataRequest;UserImportRecord.multiFactor
The user's multi-factor related properties.
Signature:
multiFactor?:MultiFactorUpdateSettings;UserImportRecord.passwordHash
The buffer of bytes representing the user's hashed password. When a user is to be imported with a password hash,UserImportOptions are required to be specified to identify the hashing algorithm used to generate this hash.
Signature:
passwordHash?:Buffer;UserImportRecord.passwordSalt
The buffer of bytes representing the user's password salt.
Signature:
passwordSalt?:Buffer;UserImportRecord.phoneNumber
The user's primary phone number, if set.
Signature:
phoneNumber?:string;UserImportRecord.photoURL
The user's photo URL.
Signature:
photoURL?:string;UserImportRecord.providerData
An array of providers (for example, Google, Facebook) linked to the user.
Signature:
providerData?:UserProviderRequest[];UserImportRecord.tenantId
The identifier of the tenant where user is to be imported to. When not provided in anadmin.auth.Auth context, the user is uploaded to the default parent project. When not provided in anadmin.auth.TenantAwareAuth context, the user is uploaded to the tenant corresponding to thatTenantAwareAuth instance's tenant ID.
Signature:
tenantId?:string;UserImportRecord.uid
The user'suid.
Signature:
uid:string;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.