# updateOrganizationUser

> Required permission: OrganizationUserWrite

Source: https://docs.gastrogate.io/docs/api/mutations/updateOrganizationUser

```graphql
updateOrganizationUser(
  organizationId: ID!
  organizationUserId: ID!
  patch: OrganizationUserPatch!
): OrganizationUser
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `organizationId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `organizationUserId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `patch` | [`OrganizationUserPatch`](https://docs.gastrogate.io/docs/api/types/OrganizationUserPatch.md)! |  |

## Returns

[`OrganizationUser`](https://docs.gastrogate.io/docs/api/types/OrganizationUser.md)

## Example

```graphql
mutation UpdateOrganizationUser($organizationId: ID!, $organizationUserId: ID!, $patch: OrganizationUserPatch!) {
  updateOrganizationUser(organizationId: $organizationId, organizationUserId: $organizationUserId, patch: $patch) {
    id
    email
    hasCreateCashAdjustmentAccess
    hasDiscountAccess
    hasDiscountedCheckoutAccess
    hasEditMenuAccess
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateOrganizationUser(...) { __typename } }"}'
```
