ByCloud Docs
GuidesCLIAPISDK

List service account groups

bycloud iam service-accounts-groups list --service_account_id <service_account_id> [flags]

List all groups the service account belongs to

Options

--service_account_id

stringrequired

Service Account ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

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

Default: "text"

Command

bycloud iam service-accounts-groups list \
--service_account_id "abc-123"

Output

ID CRN NAME DESCRIPTION MEMBER_COUNT
550e8400-e29b-41d4-a716-446655 crn::iam:group:550e8400-e29b-4 developers Development team members 1
550e8400-e29b-41d4-a716-446655 crn::iam:group:550e8400-e29b-4 developers Development team members 1