cub serviceaccount get
cub serviceaccount get
Get details about a service account
Synopsis
Get detailed information about a ServiceAccount entity, including the user it acts as.
With --verbose, it also shows what the service account can reach: its Groups, and every entity whose Permissions name it or one of its Groups, with the actions each grants and which come through a Group. Only the entities you can see are searched. Permissions on the service account itself are its Permissions above, not a grant to it, and are left out. Of more than four grants on entities of one type, in one Space, that give the same permissions -- the Tags an account that publishes is granted Manage on, for one -- the newest three are listed and the rest counted.
Examples:
# Get service account details in table format
cub serviceaccount get deploy-bot
# Get the ID of the user the service account acts as, to grant it access
cub serviceaccount get deploy-bot -o jq=.ServiceAccount.UserID
# Also show its Groups and every entity that grants it, or one of its Groups, permissions
cub serviceaccount get deploy-bot --verbose
cub serviceaccount get <name or id> [flags]
Options
-h, --help help for get
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
--quiet No default output.
--select string Comma-separated list of fields to retrieve and display. Entity IDs and Slug are always included. Example: "DisplayName,CreatedAt,Labels"
--verbose Detailed output, additive with default output
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub serviceaccount - Service account commands