# Get User By Username

| **API URL**         | {{url}}/fhir-user-service/users/username |
| ------------------- | ---------------------------------------- |
| **Method**          | GET                                      |
| **Request Headers** | Authorization : Bearer \[token]          |
| **Description**     | Retrieves a user by Username             |

#### **Input** <a href="#accountcreate-input" id="accountcreate-input"></a>

| **Field Name**        | **Type** | **Example**                          |
| --------------------- | -------- | ------------------------------------ |
| username(parameter)   | String   | Username                             |
| Authorization(Header) | String   | Authorized token from login response |

#### **Sample Input:** <a href="#accountcreate-sampleinput" id="accountcreate-sampleinput"></a>

```postman_json
{
    "username": "fhiradmin@mtdlabs.com"
}
```

#### **Sample Output:** <a href="#accountcreate-sampleoutput" id="accountcreate-sampleoutput"></a>

```
{
    "message": "Got user.",
    "entity": {
        "createdBy": 1,
        "updatedBy": 1,
        "id": 1,
        "createdAt"
    }
}
```
