FirebaseAdmin.Auth.UserRecord

Contains metadata associated with a Firebase user account.

Summary

Instances of this class are immutable and thread safe.

Inheritance

Inherits from: FirebaseAdmin.Auth.IUserInfo
Direct Known Subclasses:FirebaseAdmin.Auth.ExportedUserRecord

Properties

CustomClaims
IReadOnlyDictionary< string, object >
Gets the custom claims set on this user, as a non-null dictionary.
Disabled
bool
Gets a value indicating whether the user account is disabled or not.
DisplayName
string
Gets the user's display name, if available.
Email
string
Gets the user's email address, if available.
EmailVerified
bool
Gets a value indicating whether the user's email address is verified or not.
PhoneNumber
string
Gets the user's phone number, if available.
PhotoUrl
string
Gets the user's photo URL, if available.
ProviderData
Gets a non-null array of provider data for this user.
TenantId
string
Gets the user's tenant ID, if available.
TokensValidAfterTimestamp
DateTime
Gets a timestamp that indicates the earliest point in time at which a valid ID token could have been issued to this user.
Uid
string
Gets the user ID of this user.
UserMetaData
Gets additional user metadata.

Public attributes

ProviderId => UserRecord.DefaultProviderId
string
Gets the ID of the identity provider.

Properties

CustomClaims

IReadOnlyDictionary< string, object > CustomClaims

Gets the custom claims set on this user, as a non-null dictionary.

Possibly empty.

Disabled

bool Disabled

Gets a value indicating whether the user account is disabled or not.

DisplayName

string DisplayName

Gets the user's display name, if available.

Otherwise null.

Email

string Email

Gets the user's email address, if available.

Otherwise null.

EmailVerified

bool EmailVerified

Gets a value indicating whether the user's email address is verified or not.

PhoneNumber

string PhoneNumber

Gets the user's phone number, if available.

Otherwise null.

PhotoUrl

string PhotoUrl

Gets the user's photo URL, if available.

Otherwise null.

ProviderData

IUserInfo[] ProviderData

Gets a non-null array of provider data for this user.

Possibly empty.

TenantId

string TenantId

Gets the user's tenant ID, if available.

Otherwise null.

TokensValidAfterTimestamp

DateTime TokensValidAfterTimestamp

Gets a timestamp that indicates the earliest point in time at which a valid ID token could have been issued to this user.

Tokens issued prior to this timestamp are considered invalid.

Uid

string Uid

Gets the user ID of this user.

UserMetaData

UserMetadata UserMetaData

Gets additional user metadata.

This is guaranteed not to be null.

Public attributes

ProviderId

string ProviderId => UserRecord.DefaultProviderId

Gets the ID of the identity provider.

This returns the constant value firebase.