{"Name":"ms365","ID":"go.mondoo.com/cnquery/v9/providers/ms365","Version":"13.0.6","ConnectionTypes":["ms365"],"CrossProviderTypes":null,"Connectors":[{"Name":"ms365","Use":"ms365","Short":"a Microsoft 365 tenant","Long":"Use the ms365 provider to query resources within Microsoft 365, including organizations, users, roles, SharePoint sites, and more.\n\nExamples:\n  cnspec shell ms365 --certificate-path \u003cPATH-TO-YOUR-PEM\u003e --tenant-id \u003cYOUR-TENANT-ID\u003e --client-id \u003cYOUR-CLIENT-ID\u003e\n  cnspec scan ms365 --certificate-path \u003cPATH-TO-YOUR-PEM\u003e --tenant-id \u003cYOUR-TENANT-ID\u003e --client-id \u003cYOUR-CLIENT-ID\u003e\n\nNotes:\n  If you give cnquery access through the Microsoft 365 API, you can omit the certificate-path, tenant-id, and client-id flags. To learn how, read https://mondoo.com/docs/cnquery/saas/ms365/#give-cnquery-access-through-the-microsoft-365-api.\n","MaxArgs":5,"Flags":[{"Long":"tenant-id","Desc":"Directory (tenant) ID of the service principal","Type":3},{"Long":"client-id","Desc":"Application (client) ID of the service principal","Type":3},{"Long":"organization","Desc":"Organization to scan","Type":3},{"Long":"sharepoint-url","Desc":"Sharepoint URL to scan","Type":3},{"Long":"client-secret","Desc":"Secret for the application","Type":3},{"Long":"certificate-path","Desc":"Path (in PKCS #12/PFX or PEM format) to the authentication certificate","Type":3},{"Long":"certificate-secret","Desc":"Passphrase for the authentication certificate file","Type":3}],"Aliases":["m365"]}],"AssetUrlTrees":[{"path_segments":["technology=saas","provider=ms365"]}]}