Skip to content

Commit

Permalink
🧹 update google workspace cli docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Oct 1, 2023
1 parent 6f7c407 commit 0dcace2
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions providers/google-workspace/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,25 @@ var Config = plugin.Provider{
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "google-workspace",
Use: "google-workspace",
Short: "Google Workspace",
Name: "google-workspace",
Use: "google-workspace [--credentials-path <credentials-path>] [--customer-id <customer-id>] [--impersonated-user-email <impersonated-user-email>]",
Short: "Google Workspace",
Long: `The google-workspace argument specifies that the interaction is intended for a Google Workspace domain.
The provider requires three flags to be set:
'--customer-id <customer-id>': This flag is used to specify the unique ID of the Google Workspace customer.
The customer ID is an immutable, unique identifier for a Google Workspace account.
'--impersonated-user-email <user-email>': This flag is used to specify the email address of the user to
impersonate in this session. This is useful when the user executing the command does not have the necessary
permissions, but can impersonate a user who does.
'--credentials-path <credentials-file-path>': This flag is used to specify the file path to the credentials
file (typically a JSON file) that should be used for authentication.
In case GOOGLE_APPLICATION_CREDENTIALS environment variable is set, the --credentials-path flag can be omitted.
`,

Aliases: []string{"googleworkspace"},
Discovery: []string{},
Flags: []plugin.Flag{
Expand All @@ -26,12 +42,14 @@ var Config = plugin.Provider{
Type: plugin.FlagType_String,
Default: "",
Desc: "The path to the service account credentials to access the APIs with",
Option: plugin.FlagOption_Required,
},
{
Long: "customer-id",
Type: plugin.FlagType_String,
Default: "",
Desc: "Specify the Google Workspace customer id to scan",
Option: plugin.FlagOption_Required,
},
{
Long: "impersonated-user-email",
Expand Down

0 comments on commit 0dcace2

Please sign in to comment.