# Get a single user by ID Endpoint: GET /users/{userId} Version: 1.0 Security: bearer ## Path parameters: - `userId` (number, required) ## Response 200 fields (application/json): - `id` (number, required) Unique identifier for the user Example: 1 - `email` (string, required) Email address of the user Example: "admin@admin.com" - `firstName` (string, required) First name of the user Example: "John" - `lastName` (string, required) Last name of the user Example: "Doe" - `role` (string, required) Role of the user Enum: "ORGANIZATION_USER", "BRAND_USER", "SITE_USER", "CLIENT_ACCOUNT_USER", "SITE_MANAGER_USER" - `isEnabled` (boolean, required) Is the user enabled Example: true - `createdAt` (string, required) Creation date of the user Example: "2024-01-01T00:00:00.000Z" - `updatedAt` (string, required) Last update date of the user Example: "2024-01-02T00:00:00.000Z" - `userOrganizations` (array) Organizations associated with the user - `userBrands` (array) Brands associated with the user - `userSites` (array) Sites associated with the user - `userClientAccounts` (array) Client accounts associated with the user - `userClientAccounts.clientAccountId` (number, required) Client Account ID - `userClientAccounts.clientAccount` (object, required) Client Account details - `userClientAccounts.ownedClientAccounts` (array) Client Accounts owned by this user (only present if user is owner) - `managedSites` (array) Sites associated with the user - `tosAcceptedAt` (string, required) Time stamp of the Terms of Services acceptance Example: "2024-01-02T00:00:00.000Z" ## Response 401 fields (application/json): - `message` (string, required) Error message indicating unauthorized access. Example: "Unauthorized" - `statusCode` (number, required) HTTP status code for unauthorized access. Example: 401 ## Response 400 fields ## Response 403 fields