# User
The User API lets you asynchronously retrieve information about the currently logged-in user.

The API returns a `Promise`, which contains user information, and the payload varies based on whether the user is logged into the Shopify admin or Shopify POS.
### User

```js
await shopify.user();

```


## Admin User
The `user` API, which is available on the `shopify` global, asynchronously retrieves information about the user that's logged into the Shopify admin.
### AdminUserAPI
Asynchronously returns information about the current user.
#### Returns: Promise<AdminUser>

export type AdminUserAPI = () => Promise<AdminUser>;
### AdminUser

### accountAccess
The account access level of the logged-in user
## POS User
The `user` API, which is available on the `shopify` global, asynchronously retrieves information about the current user logged into Shopify POS.
### POSUserAPI

#### Returns: Promise<POSUser>

export type POSUserAPI = () => Promise<POSUser>;
### POSUser

### accountAccess
The account access level of the logged-in user
### accountType
The user's account type.
### email
The user's email address.
### firstName
The user's first name.
### id
The ID of the user's staff.
### lastName
The user's last name.