This topic covers some of the basic error scenarios with the Remove User from Group 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.
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.