--- title: LocationDeactivateUserError - GraphQL Admin description: >- The possible errors that can be returned when executing the `locationDeactivate` mutation. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/LocationDeactivateUserError md: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/LocationDeactivateUserError.md --- # Location​Deactivate​User​Error object Requires `read_locations` access scope. The possible errors that can be returned when executing the `locationDeactivate` mutation. ## Fields * code [Location​Deactivate​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/unstable/enums/LocationDeactivateUserErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [location​Deactivate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/locationDeactivate) mutation Deactivates a location and moves inventory, pending orders, and moving transfers to a destination location. *** ## <\~> LocationDeactivateUserError Mutations ### Mutated by * <\~>[location​Deactivate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/locationDeactivate) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError) interface *** ## ||-LocationDeactivateUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)