--- title: companyContactAssignRole - GraphQL Admin description: Assigns a role to a contact for a location. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companycontactassignrole md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companycontactassignrole.md --- # company​Contact​Assign​Role mutation Requires `write_customers` access scope or `write_companies` access scope. Also: The API client must be installed on a Shopify Plus store. Assigns a role to a contact for a location. ## Arguments * company​Contact​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the contact to assign a role to. * company​Contact​Role​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the role to assign to a contact. * company​Location​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the location to assign a role to a contact. *** ## Company​Contact​Assign​Role​Payload returns * company​Contact​Role​Assignment [Company​Contact​Role​Assignment](https://shopify.dev/docs/api/admin-graphql/latest/objects/CompanyContactRoleAssignment) The company contact role assignment. * user​Errors [\[Business​Customer​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BusinessCustomerUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### companyContactAssignRole reference ## Mutation Reference ```graphql mutation companyContactAssignRole($companyContactId: ID!, $companyContactRoleId: ID!, $companyLocationId: ID!) { companyContactAssignRole(companyContactId: $companyContactId, companyContactRoleId: $companyContactRoleId, companyLocationId: $companyLocationId) { companyContactRoleAssignment { # CompanyContactRoleAssignment fields } userErrors { field message } } } ``` ## Input ##### Variables ```json { "companyContactId": "gid://shopify//10079785100", "companyContactRoleId": "gid://shopify//10079785100", "companyLocationId": "gid://shopify//10079785100" } ```