This function lists all Graph or Exchange permissions required for the specified resources, both for reading and updating. With the parameters, you can specify which permissions you are interested in.


This function outputs information as the following type: System.Collections.Hashtable


Parameter Required DataType Default Value Allowed Values Description
ResourceNameList True String[] An array of resource names for which the permissions should be determined.
PermissionsType False String Delegated Delegated, Application Specifies what type of Graph permissions need to get returned.
Source False String Graph Exchange, Graph, SharePoint Specifies the workload of the permissions that need to get returned.


-------------------------- EXAMPLE 1 --------------------------

Get-M365DSCCompiledPermissionList -ResourceNameList @('O365User', 'AADApplication') -Source 'Graph' -PermissionsType 'Delegated'

-------------------------- EXAMPLE 2 --------------------------

Get-M365DSCCompiledPermissionList -ResourceNameList @('O365User', 'AADApplication') -Source 'Graph' -PermissionsType 'Application'

-------------------------- EXAMPLE 3 --------------------------

Get-M365DSCCompiledPermissionList -ResourceNameList @('EXOAcceptedDomain') -Source 'Exchange'