> For the complete documentation index, see [llms.txt](https://docs.uaepass.ae/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uaepass.ae/feature-guides/authentication/web-application/3.-obtaining-authenticated-user-information-from-the-access-token.md).

# 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](/files/-MekZxVy5U5Cxaq4fO6z)

**SOP Handling for Visitor Profile**

<figure><img src="/files/uWWA93UJzle9WsYXg9of" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.uaepass.ae/feature-guides/authentication/web-application/3.-obtaining-authenticated-user-information-from-the-access-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
