Skip to content

Commit

Permalink
Removed Comments and Fixed Roles
Browse files Browse the repository at this point in the history
Removed Comments and Fixed Roles
  • Loading branch information
BNWEIN committed Jan 2, 2025
1 parent 60bbfd0 commit 64a463b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Function Invoke-AddConnectionFilter {
.FUNCTIONALITY
Entrypoint
.ROLE
Exchange.SpamFilter.ReadWrite
Exchange.ConnectionFilter.ReadWrite
#>
[CmdletBinding()]
param($Request, $TriggerMetadata)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Function Invoke-AddConnectionFilterTemplate {
.FUNCTIONALITY
Entrypoint
.ROLE
Exchange.Spamfilter.ReadWrite
Exchange.ConnectionFilter.ReadWrite
#>
[CmdletBinding()]
param($Request, $TriggerMetadata)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Function Invoke-ListConnectionFilter {
.FUNCTIONALITY
Entrypoint
.ROLE
Exchange.SpamFilter.Read
Exchange.ConnectionFilter.Read
#>
[CmdletBinding()]
param($Request, $TriggerMetadata)
Expand All @@ -16,20 +16,16 @@ Function Invoke-ListConnectionFilter {

try {
$Policies = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-HostedConnectionFilterPolicy' | Select-Object * -ExcludeProperty *odata*, *data.type*
#$RuleState = New-ExoRequest -tenantid $Tenantfilter -cmdlet 'Get-HostedContentFilterRule' | Select-Object * -ExcludeProperty *odata*, *data.type*
#$GraphRequest = $Policies | Select-Object *, @{l = 'ruleState'; e = { $name = $_.name; ($RuleState | Where-Object name -EQ $name).State } }, @{l = 'rulePrio'; e = { $name = $_.name; ($RuleState | Where-Object name -EQ $name).Priority } }
$StatusCode = [HttpStatusCode]::OK
} catch {
$ErrorMessage = Get-NormalizedError -Message $_.Exception.Message
$StatusCode = [HttpStatusCode]::Forbidden
#$GraphRequest = $ErrorMessage
$Policies = $ErrorMessage
}

# Associate values to output bindings by calling 'Push-OutputBinding'.
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
StatusCode = $StatusCode
#Body = @($GraphRequest)
Body = @($Policies)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Function Invoke-ListConnectionFilterTemplates {
.FUNCTIONALITY
Entrypoint
.ROLE
Exchange.SpamFilter.Read
Exchange.ConnectionFilter.Read
#>
[CmdletBinding()]
param($Request, $TriggerMetadata)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Function Invoke-RemoveConnectionfilterTemplate {
.FUNCTIONALITY
Entrypoint
.ROLE
Exchange.Spamfilter.ReadWrite
Exchange.ConnectionFilter.ReadWrite
#>
[CmdletBinding()]
param($Request, $TriggerMetadata)
Expand Down

0 comments on commit 64a463b

Please sign in to comment.