Remove member from group using group id

Hi There,

I am getting 500 error while trying to remove a member from the group in confluence cloud
URL https://{host}{groupid}&accountId={accountId}


    "statusCode": 500,
    "message": " RemoveUserFromGroupByAccountIdIdentityPlatformCommand failed and no fallback available."

Thanks for your help.

Added the user to site-admin group and it started working.
The error status should 403 instead 500 and the message was not clear as well.