ByCloud Docs
GuidesCLIAPISDK

Remove member from group

bycloud iam groups-members delete --group_id <group_id> --principal_type <principal_type> [flags]

Remove a user or service account from a group

Options

--group_id

stringrequired

Group ID

--principal_id

stringrequired

ID of the principal

--principal_type

stringrequired

Type of principal (user or service_account)

Values: "user", "service_account"

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Command

bycloud iam groups-members delete \
--group_id "abc-123" \
--principal_type user \
--principal_id "abc-123"

Output

Success