diff --git a/.changelog/1424.txt b/.changelog/1424.txt new file mode 100644 index 00000000000..f4659f00bb8 --- /dev/null +++ b/.changelog/1424.txt @@ -0,0 +1,7 @@ +```release-note:enhancement +teams: Add `non_identity_enabled` boolean in browser isolation settings +``` + +```release-note:breaking-change +teams: `BrowserIsolation.UrlBrowserIsolationEnabled` has changed from `bool` to `*bool` to meet the library conventions +``` diff --git a/teams_accounts.go b/teams_accounts.go index ece6641ab61..15665e04f5c 100644 --- a/teams_accounts.go +++ b/teams_accounts.go @@ -48,7 +48,8 @@ type TeamsAccountSettings struct { } type BrowserIsolation struct { - UrlBrowserIsolationEnabled bool `json:"url_browser_isolation_enabled"` + UrlBrowserIsolationEnabled *bool `json:"url_browser_isolation_enabled,omitempty"` + NonIdentityEnabled *bool `json:"non_identity_enabled,omitempty"` } type TeamsAntivirus struct { diff --git a/teams_accounts_test.go b/teams_accounts_test.go index 5b841138457..dfd236d3e6e 100644 --- a/teams_accounts_test.go +++ b/teams_accounts_test.go @@ -79,6 +79,10 @@ func TestTeamsAccountConfiguration(t *testing.T) { "background_color": "#ff0000", "suppress_footer": true }, + "browser_isolation": { + "url_browser_isolation_enabled": true, + "non_identity_enabled": true + }, "body_scanning": { "inspection_mode": "deep" } @@ -112,6 +116,10 @@ func TestTeamsAccountConfiguration(t *testing.T) { MailtoSubject: "Blocked User Inquiry", SuppressFooter: BoolPtr(true), }, + BrowserIsolation: &BrowserIsolation{ + UrlBrowserIsolationEnabled: BoolPtr(true), + NonIdentityEnabled: BoolPtr(true), + }, }) } }