Skip to content

Commit

Permalink
Add onPremisesSyncEnabled to microsoft.organization. (#2842)
Browse files Browse the repository at this point in the history
* Add onPremisesSyncEnabled to microsoft.organization.

Signed-off-by: Preslav <[email protected]>

* Update providers/ms365/resources/ms365.lr.manifest.yaml

Co-authored-by: Tim Smith <[email protected]>

---------

Signed-off-by: Preslav <[email protected]>
Co-authored-by: Tim Smith <[email protected]>
  • Loading branch information
preslavgerchev and tas50 authored Dec 15, 2023
1 parent b70547d commit 69852ce
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 2 additions & 0 deletions providers/ms365/resources/ms365.lr
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ private microsoft.organization @defaults("displayName") {
displayName string
// Organization verified domains
verifiedDomains []dict
// Indicates whether password hash sync is enabled for hybrid deployments
onPremisesSyncEnabled bool
}

// Microsoft user
Expand Down
12 changes: 12 additions & 0 deletions providers/ms365/resources/ms365.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions providers/ms365/resources/ms365.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ resources:
createdDateTime: {}
displayName: {}
id: {}
onPremisesSyncEnabled:
min_mondoo_version: 9.0.0
verifiedDomains: {}
is_private: true
min_mondoo_version: 5.15.0
Expand Down
11 changes: 6 additions & 5 deletions providers/ms365/resources/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ func (a *mqlMicrosoft) organizations() ([]interface{}, error) {
}
mqlResource, err := CreateResource(a.MqlRuntime, "microsoft.organization",
map[string]*llx.RawData{
"id": llx.StringData(convert.ToString(org.GetId())),
"assignedPlans": llx.ArrayData(assignedPlans, types.Any),
"createdDateTime": llx.TimeDataPtr(org.GetCreatedDateTime()),
"displayName": llx.StringData(convert.ToString(org.GetDisplayName())),
"verifiedDomains": llx.ArrayData(verifiedDomains, types.Any),
"id": llx.StringData(convert.ToString(org.GetId())),
"assignedPlans": llx.ArrayData(assignedPlans, types.Any),
"createdDateTime": llx.TimeDataPtr(org.GetCreatedDateTime()),
"displayName": llx.StringData(convert.ToString(org.GetDisplayName())),
"verifiedDomains": llx.ArrayData(verifiedDomains, types.Any),
"onPremisesSyncEnabled": llx.BoolDataPtr(org.GetOnPremisesSyncEnabled()),
})
if err != nil {
return nil, err
Expand Down

0 comments on commit 69852ce

Please sign in to comment.