Skip to content

User

An account in your own product: who can use what you sell, under what username and email, in what state and with what roles. The users table of a SaaS product, ready to use and to extend.

PackCore
Versionv1 (latest)
URNurn:postware:core:user
Identityidentifiers or username or email
Status categoriesinvited, active, suspended, deactivated

Fields

FieldTypeReqNotes
usernamestringnothe handle they sign in or are shown as; unique, lower case
emailstringnothe address they sign in with; unique, lower case
email_verifiedboolnotrue once they have proved the address is theirs
phonestringnoE.164 when known
nameNamenotheir name; full is what the product shows
picturestringnothe URL of their profile picture
statusStatus(invited|active|suspended|deactivated)yesdefault map[category:active]
rolesstring[]nowhat they may do in the product, in the product's own words: admin, editor, viewer
signed_up_atdatetimenowhen the account was made in the product, which is not when this record was written
last_sign_in_atdatetimenowhen they last signed in
last_seen_atdatetimenowhen they last did anything in the product
localestringnoBCP 47; the OIDC locale claim
timezonestringnoIANA zone; the OIDC zoneinfo claim
customerRef<Customer>nowho pays for this user: their own Customer, or the Customer of the account they belong to
organizationRef<Organization>nothe company they use the product for
personRef<Person>nothe same human as a contact, when they are known as one

Events

user.activated when status.category becomes active; user.suspended when status.category becomes suspended; user.deactivated when status.category becomes deactivated.