Skip to content

Commit ff0fe24

Browse files
authored
Merge pull request KelvinTegelaar#268 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 8c50115 + 695a0d8 commit ff0fe24

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Modules/CIPPCore/Public/Alerts/Get-CippBreachAlert.ps1 renamed to Modules/CIPPCore/Public/Alerts/Get-CippAlertBreachAlert.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
function Get-CippBreachAlert {
2+
function Get-CippAlertBreachAlert {
33
<#
44
.FUNCTIONALITY
55
Entrypoint

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Invoke-ExecQuarantineManagement.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Function Invoke-ExecQuarantineManagement {
1111
param($Request, $TriggerMetadata)
1212

1313
$APIName = $TriggerMetadata.FunctionName
14-
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -message 'Accessed this API' -Sev 'Debug'
14+
Write-LogMessage -user $Request.headers.'x-ms-client-principal' -API $APINAME -message 'Accessed this API' -Sev 'Debug'
1515

1616

1717
# Write to the Azure Functions log stream.
@@ -20,19 +20,19 @@ Function Invoke-ExecQuarantineManagement {
2020

2121
# Interact with query parameters or the body of the request.
2222
Try {
23-
$tenantfilter = $Request.Query.TenantFilter
23+
$TenantFilter = $Request.Body.tenantFilter
2424
$params = @{
25-
Identity = $request.query.ID
26-
AllowSender = [boolean]$Request.query.AllowSender
27-
ReleasetoAll = [boolean]$Request.query.type
28-
ActionType = $Request.query.type
25+
Identity = $Request.Body.Identity
26+
AllowSender = [boolean]$Request.Body.AllowSender
27+
ReleaseToAll = [boolean]$Request.Body.Type
28+
ActionType = $Request.Body.Type
2929
}
30-
Write-Host $params
30+
3131
New-ExoRequest -tenantid $TenantFilter -cmdlet 'Release-QuarantineMessage' -cmdParams $Params
32-
$Results = [pscustomobject]@{'Results' = "Successfully processed $($request.query.ID)" }
33-
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $($tenantfilter) -message "$($request.query.id)" -Sev 'Info'
32+
$Results = [pscustomobject]@{'Results' = "Successfully processed $($Request.Body.Identity)" }
33+
Write-LogMessage -user $Request.headers.'x-ms-client-principal' -API $APINAME -tenant $TenantFilter -message "Successfully processed Quarantine ID $($Request.Body.Identity)" -Sev 'Info'
3434
} catch {
35-
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $($tenantfilter) -message "Quarantine Management failed: $($_.Exception.Message)" -Sev 'Error'
35+
Write-LogMessage -user $Request.headers.'x-ms-client-principal' -API $APINAME -tenant $TenantFilter -message "Quarantine Management failed: $($_.Exception.Message)" -Sev 'Error' -LogData $_
3636
$Results = [pscustomobject]@{'Results' = "Failed. $($_.Exception.Message)" }
3737
}
3838
# Associate values to output bindings by calling 'Push-OutputBinding'.

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddGuest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Function Invoke-AddGuest {
3434
}
3535
}
3636
$bodyToShip = ConvertTo-Json -Depth 10 -InputObject $BodyToship -Compress
37-
$GraphRequest = New-GraphPostRequest -uri 'https://graph.microsoft.com/beta/invitations' -tenantFilter $Userobj.tenantFilter -type POST -body $BodyToship -verbose
37+
$GraphRequest = New-GraphPostRequest -uri 'https://graph.microsoft.com/beta/invitations' -tenantid $Userobj.tenantFilter -type POST -body $BodyToship -verbose
3838
if ($Userobj.sendInvite -eq 'true') {
3939
$results.add('Invited Guest. Invite Email sent')
4040
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $($userobj.tenantFilter) -message "Invited Guest $($userobj.displayname) with Email Invite " -Sev 'Info'

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-ExecStandardConvert.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function Invoke-ExecStandardConvert {
162162

163163
if ($Tenant -eq 'AllTenants' -and $Excluded) {
164164
$ExcludedArr = $Excluded | ForEach-Object { $_ }
165-
$NewTemplate | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue $ExcludedArr -Force
165+
$NewTemplate | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue @($ExcludedArr) -Force
166166
}
167167

168168
return $NewTemplate

Modules/CippExtensions/Public/NinjaOne/Invoke-NinjaOneTenantSync.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ function Invoke-NinjaOneTenantSync {
17481748
},
17491749
@{
17501750
Name = 'Compliance Portal'
1751-
Link = "https://compliance.microsoft.com/?tid=$($Customer.CustomerId)"
1751+
Link = "https://purview.microsoft.com/?tid=$($Customer.CustomerId)"
17521752
Icon = 'fas fa-user-shield'
17531753
},
17541754
@{

version_latest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.1
1+
7.0.2

0 commit comments

Comments
 (0)