diff --git a/providers/ms365/config/config.go b/providers/ms365/config/config.go index 411b7a6db8..4bd5d016ec 100644 --- a/providers/ms365/config/config.go +++ b/providers/ms365/config/config.go @@ -4,6 +4,7 @@ package config import ( + "go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory" "go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin" "go.mondoo.com/cnquery/v11/providers/ms365/provider" ) @@ -67,4 +68,9 @@ var Config = plugin.Provider{ }, }, }, + AssetUrlTrees: []*inventory.AssetUrlBranch{ + { + PathSegments: []string{"technology=saas", "category=ms365"}, + }, + }, } diff --git a/providers/ms365/provider/provider.go b/providers/ms365/provider/provider.go index 91a7b56d4f..40a356db30 100644 --- a/providers/ms365/provider/provider.go +++ b/providers/ms365/provider/provider.go @@ -150,11 +150,12 @@ func (s *Service) connect(req *plugin.ConnectReq, callback plugin.ProviderCallba func (s *Service) detect(asset *inventory.Asset, conn *connection.Ms365Connection) error { asset.Platform = &inventory.Platform{ - Name: "ms365", - Runtime: "ms365", - Family: []string{""}, - Kind: "api", - Title: "Microsoft Azure", + Name: "ms365", + Runtime: "ms365", + Family: []string{""}, + Kind: "api", + Title: "Microsoft Azure", + TechnologyUrlSegments: []string{"saas", "ms365"}, } return nil @@ -175,10 +176,11 @@ func (s *Service) discover(conn *connection.Ms365Connection, conf *inventory.Con PlatformIds: []string{identifier}, Name: "Microsoft 365 tenant " + conn.TenantId(), Platform: &inventory.Platform{ - Name: "microsoft365", - Title: "Microsoft 365", - Runtime: "ms-graph", - Kind: "api", + Name: "microsoft365", + Title: "Microsoft 365", + Runtime: "ms-graph", + Kind: "api", + TechnologyUrlSegments: []string{"saas", "ms365"}, }, Connections: []*inventory.Config{conf.Clone()}, // pass-in the current config Labels: map[string]string{