User
Endpoints for managing users.
Get All Users
Returns all users for the current tenant with optional filtering and pagination. If includeRoles is true, the response includes roles for each user. If includeRoles is false or not provided, only user objects are returned without roles.
Create User
Creates a new user in both Auth0 and DAL with validation
Get Analyst Users
Returns all analyst users for the current tenant
Get Facility Analyst Users
Returns all facility analyst users for the current tenant
Invite User
Invites a user to the organization.
Get User Profile
Returns user profile and permissions
Get Current User Permissions
Returns the current authenticated user's permissions organized by tenant and resource. Response format: {'tenant-id': {'resource-name': ['action1', 'action2']}}
Replace User
Replaces a user's details (full update - email address cannot be changed)
Patch User
Partially updates a user's details (email address cannot be changed)
Get User by ID
Returns a specific user by their ID
Delete User
Deletes a user from both Auth0 and DAL
Get User Permissions
Returns permissions for a specific user
Get User Roles
Returns roles for a specific user
Bulk Update User Roles
Adds and/or removes roles for a single user in one operation. Remove operations are processed before add operations.
Remove Role from User
Remove a specific role from a user
Update User Roles (Deprecated)
Add or remove roles for a specific user. Use PUT /users/{userId}/roles/{roleId} to assign a role or DELETE /users/{userId}/roles/{roleId} to remove a role