Class UserProps
OIDC profile extension for a user stored in _users.
Credentials (login, password), email, phone and status live in the relational
_users table. This PROPS extension stores OIDC-specific profile claims.
Linked via RedbObject.key = _users._id.
[RedbScheme("identity.user")]
public class UserProps
Inheritance
Properties
Address
Structured address claim (OIDC §5.1.1). Stored as nested PROPS object.
public AddressClaim? Address { get; set; }
Birthdate
Birthday as ISO 8601 YYYY-MM-DD (year alone is allowed). OIDC: birthdate.
public string? Birthdate { get; set; }
CustomClaims
Arbitrary key-value claims emitted into tokens. Keys become claim types, values become claim values.
public Dictionary<string, string>? CustomClaims { get; set; }
EmailVerified
Whether the email has been verified. OIDC: email_verified.
public bool EmailVerified { get; set; }
ExternalIdentities
Federation identities keyed by provider ID (e.g. "google", "corp-ldap").
public Dictionary<string, ExternalIdentity>? ExternalIdentities { get; set; }
Gender
Gender. OIDC: gender ("female" / "male" / other values are allowed).
public string? Gender { get; set; }
HasUserPassword
H8 (v1.0 DoD §4 gap (d)): true iff the user has set their own password through any
public bool HasUserPassword { get; set; }
ManagerId
RFC 7643 §4.3 — manager.value: the _users._id of this user's manager, as a
public string? ManagerId { get; set; }
Nickname
Casual name the user prefers to be called (e.g. "Mike" for Michael). OIDC: nickname.
public string? Nickname { get; set; }
PasswordChangedAt
UTC timestamp of the last password change for this user. Updated by every successful
public DateTimeOffset? PasswordChangedAt { get; set; }
PhoneNumberVerified
Whether the phone number has been verified. OIDC: phone_number_verified.
public bool PhoneNumberVerified { get; set; }
PreferredUsername
Shorthand name the RP may use to identify the user in its UI. Defaults to the
public string? PreferredUsername { get; set; }
ScimExternalId
SCIM externalId (RFC 7643 §3.1) — identifier assigned by the provisioning client. NOT related to federation.
public string? ScimExternalId { get; set; }
UpdatedAt
When the profile was last changed. Emitted as the OIDC updated_at claim
public DateTimeOffset? UpdatedAt { get; set; }
UserId
The owning user's _users._id — unique per scheme via [RedbUnique]
public long? UserId { get; set; }
ZoneInfo
IANA time-zone name, e.g. "Europe/Moscow". OIDC: zoneinfo.
public string? ZoneInfo { get; set; }