---
title: companyLocationAssignStaffMembers - GraphQL Admin
description: Creates one or more mappings between a staff member at a shop and a company location.
api_version: 2026-10
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companylocationassignstaffmembers
  md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companylocationassignstaffmembers.md
---

# companyLocationAssignStaffMembers

mutation

Requires `write_customers` access scope or `write_companies` access scope. Also: The shop must have access to B2B. Some operations may require additional plan capabilities.

Creates one or more mappings between a staff member at a shop and a company location.

## Arguments

* companyLocationId

  [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  required

  The ID of the company location to assign the staff member to.

* staffMemberIds

  [\[ID!\]!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  required

  The list of IDs of the staff members to assign.

***

## CompanyLocationAssignStaffMembersPayload returns

* companyLocationStaffMemberAssignments

  [\[CompanyLocationStaffMemberAssignment!\]](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyLocationStaffMemberAssignment)

  The list of created staff member assignments.

* userErrors

  [\[BusinessCustomerUserError!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BusinessCustomerUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### companyLocationAssignStaffMembers reference