# User

## Get User Info[​](http://localhost:3000/libraries/javascript/sdk/api/user#get-user-info) <a href="#get-user-info" id="get-user-info"></a>

Obtain technical information of the current app user. Returns a result object containing multiple properties.

```javascript
import { getUserInfo } from '@myjsblock/sdk'

getUserInfo().then(userInfo => {
    console.log(userInfo);

   // userInfo.deviceId <== deviceId
   // userInfo.userAccountId <== userAccountId
   // userInfo.email <== email
   // userInfo.authorizationLevel <== authorizationLevel

});
```

#### Properties[​](http://localhost:3000/libraries/javascript/sdk/api/user#properties) <a href="#properties" id="properties"></a>

<table><thead><tr><th width="258">Property</th><th width="96.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>deviceId</code></td><td><em>String</em></td><td>ID unique to this device</td></tr><tr><td><code>applicationAccountId</code></td><td><em>String</em></td><td>Account ID of the currently signed in user</td></tr><tr><td><code>email</code></td><td><em>String</em></td><td>Account email address of the currently signed in user</td></tr><tr><td><code>authorizationLevel</code></td><td><em>String</em></td><td>User role of the currently signed in user</td></tr></tbody></table>

<br>


---

# Agent Instructions: 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:

```
GET https://docs.appmachine.com/developers/javascript/sdk/user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
