File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,7 @@ function Invoke-ExecTenantGroup {
3535 if ($groupDescription ) {
3636 $GroupEntity.Description = $groupDescription
3737 }
38- if (! $GroupEntity.PSObject.Properties.Name -contains ' GroupType' ) {
39- $GroupEntity | Add-Member - NotePropertyName ' GroupType' - NotePropertyValue $groupType - Force
40- } else {
41- $GroupEntity.GroupType = $groupType
42- }
38+ $GroupEntity | Add-Member - NotePropertyName ' GroupType' - NotePropertyValue $groupType - Force
4339 if ($groupType -eq ' dynamic' -and $dynamicRules ) {
4440 $GroupEntity.DynamicRules = " $ ( $dynamicRules | ConvertTo-Json - Depth 100 - Compress) "
4541 $GroupEntity | Add-Member - NotePropertyName ' RuleLogic' - NotePropertyValue $ruleLogic - Force
You can’t perform that action at this time.
0 commit comments