Retrieve detailed information about a user by their CPF (Brazilian tax ID).
User Identification: Users are identified by their CPF (Cadastro de Pessoa Física),
which is extracted from the preferred_username field in Keycloak JWT tokens.
Authorization: All authenticated users can retrieve user information.
Auto-Creation: Users are automatically created when they first authenticate with a valid JWT token.
Role Aggregation: The response includes both direct roles assigned to the user and roles inherited through group memberships.
Use Cases:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
User information retrieved successfully
Response model for user information.
Unique identifier for the user
1
User's CPF (Cadastro de Pessoa Física) - Brazilian tax ID
"12345678901"
User's display name from JWT token (name, given_name, or email)
"João Silva"
List of groups the user belongs to
[
"engineering_team:backend",
"data_analysts:read"
]List of roles assigned to the user (both direct and through groups)
["superadmin", "data-analyst"]