Skip to navigation

Get Current User Info

View as Markdown

Returns the profile of the currently authenticated user based on the JWT token in the Authorization header.

Headers: Authorization: Bearer {{jwt_token}} (set automatically from collection auth)

Success Response (200 OK):

{
"username": "admin",
"fullName": "John Doe",
"email": "john.doe@nms.go.ug",
"roles": ["ROLE_FACILITY_USER"],
"facilityCode": "HF0124"
}

Use this endpoint to:

  • Verify that your token is valid and not expired.
  • Confirm the roles and facility assigned to the logged-in user.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Response

Successful response