You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$null=New-GraphPostRequest-uri "https://graph.microsoft.com/beta/users/$($UserObj.id)/manager/`$ref"-tenantid $UserObj.tenantFilter-type PUT -body $ManagerBodyJSON-Verbose
230
-
Write-LogMessage-headers $Headers-API $APIName-tenant $UserObj.tenantFilter-message "Set $($UserObj.DisplayName)'s manager to $($Request.body.setManager.label)"-Sev Info
231
-
$Results.Add("Success. Set $($UserObj.DisplayName)'s manager to $($Request.body.setManager.label)")
$null=New-GraphPostRequest-uri "https://graph.microsoft.com/beta/users/$($UserObj.id)/sponsors/`$ref"-tenantid $UserObj.tenantFilter-type POST -body $SponsorBodyJSON-Verbose
238
-
Write-LogMessage-headers $Headers-API $APIName-tenant $UserObj.tenantFilter-message "Set $($UserObj.DisplayName)'s sponsor to $($Request.body.setSponsor.label)"-Sev Info
239
-
$Results.Add("Success. Set $($UserObj.DisplayName)'s sponsor to $($Request.body.setSponsor.label)")
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUserMailboxDetails.ps1
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ function Invoke-ListUserMailboxDetails {
18
18
# Interact with query parameters or the body of the request.
19
19
$TenantFilter=$Request.Query.tenantFilter
20
20
$UserID=$Request.Query.UserID
21
+
$UserMail=$Request.Query.userMail
22
+
Write-Host"TenantFilter: $TenantFilter"
23
+
Write-Host"UserID: $UserID"
24
+
Write-Host"UserMail: $UserMail"
21
25
22
26
try {
23
27
$Requests=@(
@@ -53,7 +57,7 @@ function Invoke-ListUserMailboxDetails {
53
57
@{
54
58
CmdletInput=@{
55
59
CmdletName='Get-BlockedSenderAddress'
56
-
Parameters=@{ Identity=$UserID }
60
+
Parameters=@{ SenderAddress=$UserMail }
57
61
}
58
62
},
59
63
@{
@@ -63,7 +67,6 @@ function Invoke-ListUserMailboxDetails {
0 commit comments