From 58540e2f3d3d07b1fb77c21d6f49b9374a01e909 Mon Sep 17 00:00:00 2001 From: Benoit BERAUD Date: Mon, 20 Mar 2023 20:04:34 +0100 Subject: [PATCH] Add support for clientApplications in conditionalAccessConditionSet (used in conditionalAccessPolicy) --- msgraph/models.go | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/msgraph/models.go b/msgraph/models.go index 4f44753e..78a73073 100644 --- a/msgraph/models.go +++ b/msgraph/models.go @@ -608,16 +608,22 @@ type ConditionalAccessApplications struct { IncludeUserActions *[]string `json:"includeUserActions,omitempty"` } +type ConditionalAccessClientApplications struct { + ExcludeServicePrincipals *[]string `json:"excludeServicePrincipals,omitempty"` + IncludeServicePrincipals *[]string `json:"includeServicePrincipals,omitempty"` +} + type ConditionalAccessConditionSet struct { - Applications *ConditionalAccessApplications `json:"applications,omitempty"` - ClientAppTypes *[]ConditionalAccessClientAppType `json:"clientAppTypes,omitempty"` - Devices *ConditionalAccessDevices `json:"devices,omitempty"` - DeviceStates *ConditionalAccessDeviceStates `json:"deviceStates,omitempty"` - Locations *ConditionalAccessLocations `json:"locations"` - Platforms *ConditionalAccessPlatforms `json:"platforms"` - SignInRiskLevels *[]ConditionalAccessRiskLevel `json:"signInRiskLevels,omitempty"` - UserRiskLevels *[]ConditionalAccessRiskLevel `json:"userRiskLevels,omitempty"` - Users *ConditionalAccessUsers `json:"users,omitempty"` + Applications *ConditionalAccessApplications `json:"applications,omitempty"` + ClientApplications *ConditionalAccessClientApplications `json:"clientApplications,omitempty"` + ClientAppTypes *[]ConditionalAccessClientAppType `json:"clientAppTypes,omitempty"` + Devices *ConditionalAccessDevices `json:"devices,omitempty"` + DeviceStates *ConditionalAccessDeviceStates `json:"deviceStates,omitempty"` + Locations *ConditionalAccessLocations `json:"locations"` + Platforms *ConditionalAccessPlatforms `json:"platforms"` + SignInRiskLevels *[]ConditionalAccessRiskLevel `json:"signInRiskLevels,omitempty"` + UserRiskLevels *[]ConditionalAccessRiskLevel `json:"userRiskLevels,omitempty"` + Users *ConditionalAccessUsers `json:"users,omitempty"` } type ConditionalAccessDevices struct {