We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code coverage report: Covered 0 % of 29 analyzed Commands in Get-AADUserAppRoleAssignment Missed commands:
Get-AADUserAppRoleAssignment
$User
if (-not $pscmdlet.ShouldProcess($UserObject.objectId)) { ...
$AccessToken = $UserObject._AccessToken
$Application = $AccessToken.Application
$Tenant = $Application.Tenant
$SkipToken = $null
$Url = '{0}/{1}/{2}/{3}/{4}?api-version={5}{6}' -f @( ...
$BaseUrl
$Tenant
'users'
$UserObject.objectId
'appRoleAssignments'
$APIversion
$SkipToken
$Params = @{ ...
Uri = $Url
Method = 'GET'
AccessToken = $AccessToken
ErrorAction = 'Stop'
$Results = Invoke-GraphRequest @Params
$ErrorMessage = "Unable to query App Assignments for service principal '{0}': {1}" -f $UserObject.objectId, $_.Exception.Message
Write-Error $ErrorMessage
$Results.ContentObject.value
$OutputObject = $Result.psobject.copy()
$OutputObject.psobject.TypeNames.Insert(0, 'MSGraphAPI.DirectoryObject.AppRoleAssignment')
$OutputObject
Add-Member -MemberType NoteProperty -Name _AccessToken -Value $AccessToken
$SkipToken = $Results.ContentObject.'odata.nextLink' -replace '^.*skiptoken', '&$skiptoken'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code coverage report:
Covered 0 % of 29 analyzed Commands in
Get-AADUserAppRoleAssignment
Missed commands:
$User
if (-not $pscmdlet.ShouldProcess($UserObject.objectId)) { ...
$AccessToken = $UserObject._AccessToken
$Application = $AccessToken.Application
$Tenant = $Application.Tenant
$SkipToken = $null
$Url = '{0}/{1}/{2}/{3}/{4}?api-version={5}{6}' -f @( ...
$BaseUrl
$Tenant
'users'
$UserObject.objectId
'appRoleAssignments'
$APIversion
$SkipToken
$Params = @{ ...
Uri = $Url
Method = 'GET'
AccessToken = $AccessToken
ErrorAction = 'Stop'
$Results = Invoke-GraphRequest @Params
$ErrorMessage = "Unable to query App Assignments for service principal '{0}': {1}" -f $UserObject.objectId, $_.Exception.Message
Write-Error $ErrorMessage
$Results.ContentObject.value
$OutputObject = $Result.psobject.copy()
$OutputObject.psobject.TypeNames.Insert(0, 'MSGraphAPI.DirectoryObject.AppRoleAssignment')
$OutputObject
Add-Member -MemberType NoteProperty -Name _AccessToken -Value $AccessToken
$OutputObject
$SkipToken = $Results.ContentObject.'odata.nextLink' -replace '^.*skiptoken', '&$skiptoken'
The text was updated successfully, but these errors were encountered: