Skip to main content

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.

The user API, which is available on the shopify global, asynchronously retrieves information about the user that's logged into the Shopify admin.

Promise<>
Was this section helpful?

The user API, which is available on the shopify global, asynchronously retrieves information about the current user logged into Shopify POS.

Promise<>
Was this section helpful?

User

await shopify.user();