UserRole enum defines the access levels available for users in the system.
Enum Values
Administrator role with full system accessUsers with the
ADMIN role have elevated privileges and can perform administrative operations such as managing all users in the system.Standard user role with regular accessThe
USER role is the default role for most users, providing standard access to user management features.Guest role with limited accessUsers with the
GUEST role have restricted access to the system, typically with read-only or limited permissions.Usage in API Requests
TheUserRole is used in both registration and update operations:
Register User Example
Update User Example
Validation
When provided in API requests:- The role field is required and cannot be null
- Must be one of the three valid values:
ADMIN,USER, orGUEST - Case-sensitive (must be uppercase)
- Invalid values will result in a validation error