-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Milestone
Description
Code coverage report:
Covered 0 % of 23 analyzed Commands in Get-AADUserByUserPrincipalName
Missed commands:
| Line | Command |
|---|---|
| 76 | $UserPrincipalName |
| 77 | if (-not $pscmdlet.ShouldProcess($UserId)) { ... |
| 80 | $Application = $AccessToken.Application |
| 81 | $Tenant = $Application.Tenant |
| 82 | $Url = '{0}/{1}/{2}/{3}?api-version={4}' -f @( ... |
| 83 | $BaseUrl |
| 84 | $Tenant |
| 85 | 'users' |
| 86 | $UPN |
| 87 | $APIversion |
| 89 | $Params = @{ ... |
| 90 | Uri = $Url |
| 91 | Method = 'GET' |
| 92 | AccessToken = $AccessToken |
| 93 | ErrorAction = 'Stop' |
| 96 | $Result = Invoke-GraphRequest @Params |
| 99 | $ErrorMessage = "Unable to query User '{0}': {1}" -f $UPN, $_.Exception.Message |
| 100 | Write-Error $ErrorMessage |
| 103 | $OutputObject = $Result.ContentObject.psobject.copy() |
| 104 | $OutputObject.psobject.TypeNames.Insert(0, 'MSGraphAPI.DirectoryObject.User') |
| 105 | $OutputObject |
| 105 | Add-Member -MemberType NoteProperty -Name _AccessToken -Value $AccessToken |
| 106 | $OutputObject |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels