Get-AADExportAccessPackageResourceScopes.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<#
 .Synopsis
  Gets the list of businessflowtemplatesRetrieve a list of accessPackage objects.
 
 .Description
  GET /identityGovernance/entitlementManagement/accessPackages/{id}?$expand=accessPackageResourceRoleScopes($expand=accessPackageResourceRole,accessPackageResourceScope)
  https://docs.microsoft.com/en-us/graph/api/accesspackage-list-accesspackageresourcerolescopes?view=graph-rest-beta&tabs=http
 
 .Example
  Get-AADExportAccessPackageResourceScopes
#>


Function Get-AADExportAccessPackageResourceScopes {
  [CmdletBinding()]
  param
  (
      [Parameter(Mandatory = $true)]
      [string[]]$Parents
  )
    Invoke-Graph "identityGovernance/entitlementManagement/accessPackages/$($Parents[0])" -QueryParameters @{expand='accessPackageResourceRoleScopes($expand=accessPackageResourceRole,accessPackageResourceScope)'} -ApiVersion 'beta'
}