Get User Profile

API URL

{{url}}/fhir-user-service/users/profile

Method

GET

Request Headers

Authorization : Bearer [token]

Description

Retrieves a user profile

Input

Field Name

Type

Example

Authorization(Header)

String

Authorized token from login response

userId

Long

1

Sample Input:

{
    "userId": 1
}

Sample Output:

{
    "message": "Got user.",
    "entity": {
        "id": 1,
        "roles": [
            {
                "id": 1,
                "name": "FHIR_Admin",
                "level": "1"
            }
        ],
        "firstName": "FHIR",
        "lastName": null,
        "username": "fhiradmin@mtdlabs.com",
        "organizations": null,
        "tenantId": null,
        "timezone": {
            "id": 1,
            "offset": "-5:00",
            "description": "Eastern Time Zone"
        },
        "phoneNumber": null,
        "gender": null,
        "countryCode": "US",
        "country": {
            "createdBy": 1,
            "updatedBy": 1,
            "id": 1,
            "createdAt"
        }
    }
}

Last updated

@2024 Medtronic LABS