Get User Profile

API URL

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

Method

GET

Description

Get details of the user

Input

Field Name

Type

Mandatory

Example

Authorization (Header)

String

Yes

Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6

Output

Field Name

Type

Comments

message

String

Success Message

id

Integer

User ID

username

String

gender

String

roles

Object

firstName

String

lastName

String

middleName

String

phoneNumber

String

timezone

Object

organizations

String

tenantId

String

countryCode

String

country

String

status

String

responseCode

String

totalCount

String

Sample Output

{
  "message": "Got user.",
  "entity": {
    "id": 2,
    "roles": [
      {
        "id": 2,
        "name": "SUPER_ADMIN",
        "level": null,
        "authority": "SUPER_ADMIN",
        "createdBy": 1,
        "updatedBy": 1,
        "createdAt": "2023-01-12T09:00:47-08:00",
        "updatedAt": "2023-01-12T09:00:47-08:00",
        "active": true,
        "deleted": false
      }
    ],
    "firstName": "Superadminnn",
    "lastName": "Test",
    "username": "XXX-bd@XXX.XXX",
    "organizations": [],
    "tenantId": 15,
    "timezone": {
      "id": 2,
      "offset": "-08:00",
      "description": "(UTC-08:00) Baja California"
    },
    "phoneNumber": "2443XX4534",
    "gender": "Female",
    "countryCode": "202",
    "country": null
  },
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}

Last updated

@2024 Medtronic LABS