Users
Get current user info
Get current authenticated user information.
Returns enriched user data combining:
- Keycloak token claims (roles, groups, etc.)
- Django profile data (department, employee number, etc.)
GET
Get current user info
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 Previous
List client permissionsProvides a per-request, realm-scoped KeycloakAdminService instance.
Mix in before the ViewSet base class on any ViewSet that calls Keycloak.
Connection pooling inside KeycloakAdminService makes per-request
instantiation cost negligible.
Usage:
class RoleViewSet(KeycloakAdminMixin, viewsets.ViewSet):
def list(self, request):
roles = self.keycloak.list_roles()
Next
Get current user info
