Skip to content

Commit 425b5c6

Browse files
committed
feat: make URNScope an optional field
1 parent 4413849 commit 425b5c6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/extractors/googleworkspace/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
```yaml
66
source:
7-
scope: my-scope
87
type: googleworkspace
98
config:
109
service_account_json: "XXX"

plugins/extractors/googleworkspace/googleworkspace.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ func New(logger log.Logger, userServiceFactory UsersServiceFactory) *Extractor {
7272

7373
// Init initializes the extractor
7474
func (e *Extractor) Init(ctx context.Context, config plugins.Config) (err error) {
75+
if config.URNScope == "" {
76+
config.URNScope = admin.AdminDirectoryUserScope
77+
}
7578
if err = e.BaseExtractor.Init(ctx, config); err != nil {
7679
return err
7780
}

0 commit comments

Comments
 (0)