forked from KelvinTegelaar/CIPP-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'KelvinTegelaar:master' into master
- Loading branch information
Showing
58 changed files
with
2,282 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,13 @@ $JSONObj = $request.body.RawJSON | ConvertFrom-Json | Select-Object * -ExcludePr | |
Remove-EmptyArrays $JSONObj | ||
#Remove context as it does not belong in the payload. | ||
$JsonObj.grantControls.PSObject.Properties.Remove('[email protected]') | ||
$JsonObj.conditions.users.excludeGuestsOrExternalUsers.externalTenants.PSObject.Properties.Remove('@odata.type') | ||
if ($JSONObj.conditions.users.excludeGuestsOrExternalUsers.externalTenants.Members) { | ||
$JsonObj.conditions.users.excludeGuestsOrExternalUsers.externalTenants.PSObject.Properties.Remove('@odata.context') | ||
$JsonObj.conditions.users.excludeGuestsOrExternalUsers.externalTenants.PSObject.Properties.Remove('@odata.type') | ||
} | ||
if ($Request.body.newstate -and $Request.body.newstate -ne 'donotchange') { | ||
$Jsonobj.state = $Request.body.newstate | ||
} | ||
$RawJSON = $JSONObj | ConvertTo-Json -Depth 10 | ||
|
||
$results = foreach ($Tenant in $tenants) { | ||
|
Oops, something went wrong.