Skip to main content

Overview

User management in Tribe Social allows you to create, update, and manage user accounts across your platform. Users can have different roles and permissions, and can be associated with specific platforms and groups.

User Roles

  • User: Regular platform user
  • Admin: Platform administrator with elevated privileges
  • Creator: Content creator with specific content management permissions

User Features

  • User authentication and authorization
  • Platform-specific user management
  • Group membership management
  • Role-based access control
  • Profile customization

User Properties

  • Basic information (name, email)
  • Profile details (photo, banner image)
  • Platform association
  • Group memberships
  • Role and permissions
  • Authentication status

Database Fields

Field NameTypeDescriptionDefaultConstraints
nameSTRINGUser's full name-Not empty
emailSTRINGUser's email address-Required, Not empty
passwordSTRINGHashed password-Optional
saltSTRINGPassword salt--
chatModeratorBOOLEANWhether user can moderate chatsfalseRequired
roleENUMUser role-Required, One of: "free", "basic", "premium", "admin", "creator"
statusENUMAccount status"active"Required, One of: "active", "pending"
resetTokenSTRINGPassword reset token--
resetTokenUpdatedAtSTRINGReset token timestamp--
otpSTRINGOne-time password--
otpExpiryDATEOTP expiration date--
photoUrlSTRINGProfile photo URL--
bannerImageUrlSTRINGProfile banner URL--
notesTEXTUser notes/bio--
citySTRINGUser's city--
stateTEXTUser's state(s)--
platformSTRINGPlatform identifier--
providerIdENUMOAuth provider-One of: "google.com", "facebook.com"
providerEmailSTRINGOAuth email--
providerPhotoUrlSTRINGOAuth profile photo--
stripeCustomerIdSTRINGStripe customer ID--
firebase_uidSTRINGFirebase user ID--
customAnalyticsUrlSTRINGAnalytics dashboard URL--
bannedBOOLEANWhether user is bannedfalseRequired
additionalInfoJSONAdditional user data-Optional
positionINTEGERUser's position/order--

Error Handling

All user endpoints use standard HTTP status codes:

Status CodeDescription
400Invalid request parameters
401Unauthorized - Authentication required
403Forbidden - Insufficient permissions
404User not found
500Internal server error