younifyd
Menu

currentStaffMember

The staff member whose access token is making the request.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the currentStaffMember action (under Current).
  3. Fill in the fields below, then reference the result from later steps as {{currentstaffmember.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query CurrentStaffMember {
  currentStaffMember {
    accountType
    active
    email
    exists
    firstName
    id
    initials
    isShopOwner
    lastName
    locale
    name
    phone
    privateData {
      accountSettingsUrl
      createdAt
      permissions
    }
  }
}

Response

Read the result with {{currentstaffmember.response.data.data.currentStaffMember}}. If the API returns errors, the step fails and they are at {{currentstaffmember.response.data.errors}}.

accountTypestring

One ofREGULARRESTRICTEDINVITEDREQUESTEDCOLLABORATORCOLLABORATOR_TEAM_MEMBERSAMLINVITED_STORE_OWNER

activeboolean
emailstring
existsboolean
firstNamestring
idstring
initialsarray<string>
isShopOwnerboolean
lastNamestring
localestring
namestring
phonestring
privateDataobject
accountSettingsUrlstring
createdAtstring
permissionsarray<object>

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

Was this page helpful?
currentStaffMember — Shopify — Documentation