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
230
Write-LogMessage-headers $Headers-API $APIName-tenant $UserObj.tenantFilter-message "Set $($UserObj.DisplayName)'s manager to $($Request.body.setManager.label)"-Sev Info
231
-
$null=$Results.Add("Success. Set $($UserObj.DisplayName)'s manager to $($Request.body.setManager.label)")
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
238
Write-LogMessage-headers $Headers-API $APIName-tenant $UserObj.tenantFilter-message "Set $($UserObj.DisplayName)'s sponsor to $($Request.body.setSponsor.label)"-Sev Info
239
-
$null=$Results.Add("Success. Set $($UserObj.DisplayName)'s sponsor to $($Request.body.setSponsor.label)")
239
+
$Results.Add("Success. Set $($UserObj.DisplayName)'s sponsor to $($Request.body.setSponsor.label)")
240
240
}
241
241
242
-
$body=@{'Results'=@($results) }
243
242
# Associate values to output bindings by calling 'Push-OutputBinding'.
0 commit comments