> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove user from group errors

This topic covers some of the basic error scenarios with the [Remove User from Group](c_removeUserFromGroup) Process.

## Error Codes

Below is a list of potential error codes that may be returned during the execution of this Process.

**Note:** See [Common Process Error Codes](c_commonProcessErrors).

| HTTP Status | Storefront Gateway Business Error Code | Description |
| - | - | - |
| `400` | `invalid-user-to-remove` | The target User entity is not in a Group with the current User. Alternatively, the target User entity is in a Group with the current User, but the current user is not the Group Primary User. Therefore, the current User does have the permissions to remove the target User. |
| `403` | `invalid-permission` | The current User has been specified for Group removal. This is an illegal operation. A Group Primary cannot remove themselves from their own Group. |
| `403` | `operation-not-allowed` | The current User has Admin permissions for the specified Group, but they attempted to remove the Group Primary. A Group Admin cannot remove the Group Primary. |
| **Parent topic:**[Remove User from Group Process](c_removeUserFromGroup) | | |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.