Skip to content

Commit cb0d56a

Browse files
committed
Fix: Update Group API endpoint to use beta version for on-premises sync behavior
1 parent 7895681 commit cb0d56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Set-CIPPCloudManaged.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Set-CIPPCloudManaged(
1313

1414
$URI = switch ($Type) {
1515
'User' { "https://graph.microsoft.com/beta/users/$Id/onPremisesSyncBehavior" }
16-
'Group' { "https://graph.microsoft.com/v1.0/groups/$Id/onPremisesSyncBehavior" }
16+
'Group' { "https://graph.microsoft.com/beta/groups/$Id/onPremisesSyncBehavior" }
1717
'Contact' { "https://graph.microsoft.com/beta/contacts/$Id/onPremisesSyncBehavior" }
1818
}
1919

0 commit comments

Comments
 (0)