Users
Fetch users by role
ViewSet for user operations.
Provides:
- List users with pagination, search, and filtering
- Retrieve individual user details
- Get current user info from Keycloak token
GET
Fetch users by role
Authorizations
Enter your JWT token in the format: Bearer
Response
200 - application/json
Serializer for listing users with department information.
Maximum string length:
150Pattern:
^[\w.@+-]+$True if the user has not logged in for 2 or more business days (Mon–Fri).
None last_login (never logged in) is also treated as inactive.
Maximum string length:
254Maximum string length:
150Maximum string length:
150Maximum string length:
50Maximum string length:
20STAFF- StaffCORRESPONDENT- CorrespondentCONSUMER- Cape Digi Consumer
Available options:
STAFF, CORRESPONDENT, CONSUMER Fetch users by role
