Skip to main content

User Properties

This table defines the structure of the user entity, including all properties and their descriptions.

πŸ”Ή Core Properties​

PropertyTypeRequiredDescriptionExample
firstNamestringYesUser's first name. Must be at least 1 character long."John"
lastNamestringYesUser's last name. Must be at least 1 character long."Doe"
emailstringYesEmail address used for authentication and communication."[email protected]"
roleenumYesUser's role that determines their permissions."creator"
avatarstringNoURL of the user's avatar image. Must be HTTPS."https://example.com/avatars/johndoe.jpg"
organizationIdstringYesUUID of the organization this user belongs to."123e4567-e89b-12d3-a456-426614174000"
userGroupIdstringNoUUID of the user group this user belongs to."123e4567-e89b-12d3-a456-426614174001"
fullNamestringNoFull name of the user (read-only, auto-generated)."John Doe"

🎭 User Roles​

RoleDescriptionUse Case
creatorStandard role for content creatorsRegular users who create and manage content
editorCan edit and review contentTeam leads and content managers
adminFull administrative accessOrganization administrators
rootSystem-level access (internal)System administrators

🧩 Example Entry​

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"role": "creator",
"avatar": "https://example.com/avatars/johndoe.jpg",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"userGroupId": "123e4567-e89b-12d3-a456-426614174001",
"fullName": "John Doe",
"createdAt": "2025-05-22T10:30:00Z",
"updatedAt": "2025-05-22T10:30:00Z"
}

πŸ” Interpretation​

  • Each user belongs to a specific organization (organizationId)
  • Users can optionally belong to a user group (userGroupId)
  • The role determines the user's permissions and access levels
  • The fullName is automatically generated from firstName and lastName
  • Email addresses are used as unique identifiers within an organization
  • Avatar URLs must use HTTPS protocol for security

βœ… Use Cases​

  • πŸ‘€ User Management: Create and manage user accounts
  • πŸ” Access Control: Assign roles and permissions
  • πŸ‘₯ Team Organization: Group users by departments or functions
  • πŸ“§ Communication: Use email for notifications and auth
  • πŸ–ΌοΈ Profile Customization: Allow users to set avatars

πŸ“˜ Notes​

  • Email: Must be unique within an organization
  • Roles: Default role is 'creator' if not specified
  • Avatar: Must use HTTPS protocol, optional field
  • Names: Both first and last names are required
  • Groups: Users can belong to one group at a time
  • Organizations: Users are always scoped to an organization
  • Full Name: Automatically generated, read-only field