Discover Packages
github.com/raystack/meteor
plugins
extractors
gsuite
package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Oct 31, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
G-Suite
Usage
source:
scope: my-scope
type: gsuite
config:
service_account_json: "XXX"
user_email: meteor@raystack.com
Key
Value
Example
Description
user_email
string
meteor@raystack.com
User email authorized to access the APIs
required
service_account_json
string
{"type": "service_account","project_id": "XXXXXX","private_key_id": "XXXXXX","private_key": "XXXXXX","client_email": "XXXXXX","client_id": "XXXXXX","auth_uri": "https://accounts.google.com/o/oauth2/auth","token_uri": "https://oauth2.googleapis.com/token","auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs","client_x509_cert_url": "XXXXXX"}
Service Account JSON object
required
Outputs
Field
Sample Value
email
doe.john@gmail.com
full_name
Jon Doe
status
suspended
attributes
{"aliases":"john.doe@raystack.com","custom_schemas":{},
"org_unit_path":"/","organizations":
[{"costCenter": "raystack"}],
"relations":[{"type":"manager",
"value":"john.lee@raystack.com"}]}
Notes
The service account must have a delegated domain wide authority
User Email : Only users with access to the Admin APIs can access the Admin SDK Directory API, therefore your service account needs to impersonate one of those users to access the Admin SDK Directory API.
Contributing
Refer to the contribution guidelines for information on contributing to this module.
Expand ▾
Collapse ▴
Documentation
¶
type Config struct {
ServiceAccountJSON string `json:"service_account_json" yaml:"service_account_json" mapstructure:"service_account_json" validate:"required"`
UserEmail string `json:"user_email" yaml:"user_email" mapstructure:"user_email" validate:"required"`
}
type DefaultUsersServiceFactory struct{}
type Extractor struct {
}
Extractor manages the extraction of data from the extractor
New returns a pointer to an initialized Extractor Object
Extract extracts the data from the extractor
The data is returned as a list of assets.Asset
Init initializes the extractor
type UsersServiceFactory interface {
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.