# 3. User Information

### cURL Request for User Information

```bash
curl --location --request GET 'https://stg-id.uaepass.ae/idshub/userinfo' \
--header 'Authorization: Bearer {Access Token}'
```

{% hint style="warning" %}
Replace code parameter '**{Access Token}**' with the value received from **Step 2**
{% endhint %}

### **Response(Citizen/Resident Profile)**

```json
{
    "sub": "UAEPASS/7a05992e-3244-49d3-bcbc-7894c8fca25e",
    "fullnameAR": "ساوميا,,,,شارما,,",
    "gender": "Male",
    "mobile": "97151234003",
    "lastnameEN": "ABC",
    "fullnameEN": "Ram,,,,ABC,,",
    "uuid": "7a05992e-3244-49d3-bcbc-7894c8fca25e",
    "lastnameAR": "شارما",
    "idn": "784189014978983",
    "nationalityEN": "IND",
    "firstnameEN": "Ram",
    "userType": "SOP3",
    "nationalityAR": "هندى",
    "firstnameAR": "ساوميا",
    "email": "ramabc1234@gmail.com"
}

```

### **Response(Visitor Profile)**

{% hint style="info" %}

```json
{
   "sub": "35q00600-27a0-5555-8d93-453392902b84",
   "fullnameAR": "عمر,بدوى,حسنين,,عبدالله,,",
   "mobile": "971566612311",
   "fullnameEN": "AMAR,,,,KHAN,,",
   "uuid": "35q87600-27a0-5555-8d93-453392902b84",
   "profileType": "2",
   "nationalityEN": "IND",
   "nationalityAR": "هندى",
   "firstnameEN": "AMAR",
   "unifiedID": "123458099",
   "userType": "SOP3",
   "firstnameAR": "عمر",
   "lastnameAR": "شارما",
   "lastnameEN": "Khan",
   "email": Khan@dubai.ae
}
```

{% endhint %}

## API Details

<mark style="color:blue;">`GET`</mark> `https://stg-id.uaepass.ae/idshub/userinfo`

#### Headers

| Name                                            | Type   | Description                                     |
| ----------------------------------------------- | ------ | ----------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {access token received in previous step} |

{% tabs %}
{% tab title="200 This response may change as per the scope and list of attributes allowed to share with your application" %}

```json
{
  "sub": "800F475AC0E7A9ED01B2D5D2C25A59B3",
  "userType": "SOP3",
  "fullnameAR": "سميث جون",
  "fullnameEN": "John Smith",
  "gender": "Male",
  "lastnameEN": "Smith",
  "nationalityAR": "الهند",
  "firstnameEN": "John",
  "idn": "784000000000000",
  "idType": "ID",
  "email": "john.smith@organization.com",
  "spuuid": "b1320896-fb2e-5140-baf0-fa915eb9be5d",
  "nationalityEN": "IND",
  "firstnameAR": "جون",
  "lastnameAR": "سميث",
  "acr": "urn:safelayer:tws:policies:authentication:level:high",
  "mobile": "9715555555555",
  "titleEN": "Dr.",
  "titleAR": ".د",
  "amr": [
    "urn:safelayer:tws:policies:authentication:adaptive:methods:mobileid",
    "urn:uae:authentication:method:verified"
  ]
}
```

{% endtab %}
{% endtabs %}

### Step 2 and 3 are shown pictorially below as sequence diagram:

![Figure 6: Access Token](https://4217816688-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MekZ3RZxqIxNNSkEFZ1%2F-MekZ4KL5-3z04TPBRR_%2F-MekZxVy5U5Cxaq4fO6z%2Fimage.png?alt=media\&token=17bb9d0b-aea6-4bb7-87a5-d93365701245)

**SOP Handling for Visitor Profile**

<figure><img src="https://4217816688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MekZ3RZxqIxNNSkEFZ1%2Fuploads%2FB7l2qVA8UChiW8egHu1T%2FSOP%20Handling%20Visitor.png?alt=media&#x26;token=eab7b0e6-9f27-410b-be84-30f1d080b8a8" alt=""><figcaption></figcaption></figure>
