Path: redb-identity/src/redb.Identity.Contracts/Users/UserResponse.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/UserResponse.cs
----
namespace redb.Identity.Contracts.Users;
public class UserResponse
{
public long Id { get; set; }
///
/// Public OIDC sub claim — stable per-user GUID emitted in every
/// id_token / access_token issued for this user. Distinct from
/// (the internal bigint primary key used by admin API
/// paths). Null when the user has no OIDC profile object yet (e.g.
/// freshly imported via SCIM before first sign-in initialises one).
///
public Guid? SubjectGuid { get; set; }
public string? Login { get; set; }
public string? DisplayName { get; set; }
public string? Status { get; set; }
public string? Email { get; set; }
public bool EmailVerified { get; set; }
public string? PhoneNumber { get; set; }
public bool PhoneNumberVerified { get; set; }
// OIDC Core §5.1 `profile` claims (the set userinfo returns for scope=profile).
public string? GivenName { get; set; }
public string? FamilyName { get; set; }
public string? MiddleName { get; set; }
public string? Nickname { get; set; }
public string? PreferredUsername { get; set; }
public string? Profile { get; set; }
public string? Picture { get; set; }
public string? Website { get; set; }
public string? Gender { get; set; }
public string? Birthdate { get; set; }
public string? ZoneInfo { get; set; }
public string? Locale { get; set; }
public AddressDto? Address { get; set; }
public Dictionary? CustomClaims { get; set; }
/// Federation identities keyed by provider ID. Null if local-only user.
public Dictionary? ExternalIdentities { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset ModifiedAt { get; set; }
}