Path: redb-identity/src/redb.Identity.Contracts/Users/MeUpdateProfileRequest.cs Snapshot: redb-identity, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-identity Page: https://redbase.app/src/dev-2026-12-06/redb-identity/src/redb.Identity.Contracts/Users/MeUpdateProfileRequest.cs ---- namespace redb.Identity.Contracts.Users; /// /// Self-service profile update request for PUT /me. Caller identity is derived /// from the authenticated access-token subject; Id is NOT accepted in the body. /// Admin-only fields (Status, EmailVerified, PhoneNumberVerified) /// are intentionally absent — a user cannot grant themselves verified flags or toggle /// their own account status. Changes to those fields require the admin /// PUT /users/{id} endpoint via identity:manage scope. /// public class MeUpdateProfileRequest { public string? DisplayName { get; set; } public string? Email { get; set; } public string? PhoneNumber { get; set; } // OIDC Core §5.1 `profile` claims. The whole set is settable here so userinfo can return it — // the conformance suite checks userinfo against exactly this list for scope=profile. public string? GivenName { get; set; } public string? FamilyName { get; set; } public string? MiddleName { get; set; } public string? Nickname { get; set; } /// Shorthand name for the RP's UI. Falls back to the login when unset. public string? PreferredUsername { get; set; } /// URL of the user's profile page (OIDC: profile). public string? Profile { get; set; } public string? Picture { get; set; } public string? Website { get; set; } public string? Gender { get; set; } /// ISO 8601 YYYY-MM-DD (a bare year is allowed). public string? Birthdate { get; set; } /// IANA time-zone name, e.g. "Europe/Moscow". public string? ZoneInfo { get; set; } /// BCP 47 language tag, e.g. "ru-RU". public string? Locale { get; set; } /// OIDC structured address (§5.1.1). Null = no change, empty object = clear. public AddressDto? Address { get; set; } /// Arbitrary custom claims. Null = no change. Keys merged (overwrite). public Dictionary? CustomClaims { get; set; } }