UserImportRecord interface

Interface representing a user to import to Firebase Auth via the BaseAuth.importUsers() method.

Signature:

exportinterfaceUserImportRecord

Properties

PropertyTypeDescription
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.
disabledbooleanWhether or not the user is disabled: true for disabled; false for enabled.
displayNamestringThe user's display name.
emailstringThe user's primary email, if set.
emailVerifiedbooleanWhether or not the user's primary email is verified.
metadataUserMetadataRequestAdditional metadata about the user.
multiFactorMultiFactorUpdateSettingsThe user's multi-factor related properties.
passwordHashBufferThe 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.
passwordSaltBufferThe buffer of bytes representing the user's password salt.
phoneNumberstringThe user's primary phone number, if set.
photoURLstringThe user's photo URL.
providerDataUserProviderRequest[]An array of providers (for example, Google, Facebook) linked to the user.
tenantIdstringThe identifier of the tenant where user is to be imported to. When not provided in an admin.auth.Auth context, the user is uploaded to the default parent project. When not provided in an admin.auth.TenantAwareAuth context, the user is uploaded to the tenant corresponding to that TenantAwareAuth instance's tenant ID.
uidstringThe user's uid.

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 an admin.auth.Auth context, the user is uploaded to the default parent project. When not provided in an admin.auth.TenantAwareAuth context, the user is uploaded to the tenant corresponding to that TenantAwareAuth instance's tenant ID.

Signature:

tenantId?:string;

UserImportRecord.uid

The user's uid.

Signature:

uid:string;