--- title: User description: >- 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. api_name: app-bridge-library source_url: html: 'https://shopify.dev/docs/api/app-bridge-library/apis/user' md: 'https://shopify.dev/docs/api/app-bridge-library/apis/user.md' --- # 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. ## 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. ### Returns * Promise\ ### AdminUser * accountAccess The account access level of the logged-in user ```ts string ``` ```ts export interface AdminUser { /** * The account access level of the logged-in user */ accountAccess?: string; } ``` ## POS User() The `user` API, which is available on the `shopify` global, asynchronously retrieves information about the current user logged into Shopify POS. ### Returns * Promise\ ### POSUser * accountAccess The account access level of the logged-in user ```ts string ``` * accountType The user's account type. ```ts string ``` * email The user's email address. ```ts string ``` * firstName The user's first name. ```ts string ``` * id The ID of the user's staff. ```ts number ``` * lastName The user's last name. ```ts string ``` ```ts export interface POSUser { /** * The ID of the user's staff. */ id?: number; /** * The user's first name. */ firstName?: string; /** * The user's last name. */ lastName?: string; /** * The user's email address. */ email?: string; /** * The account access level of the logged-in user */ accountAccess?: string; /** * The user's account type. */ accountType?: string; } ``` ### Examples * #### User ##### Default ```js await shopify.user(); ```