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
Details of the scenario you tried and the problem that is occurring
Call Export-M365DSCConfiguration -Components @("AADRoleSetting") for a Role that has a Group set for Approvers
Verbose logs showing the problem
Connecting to {MicrosoftGraph}...✅
[1/1] Extracting [AADRoleSetting]...
|---[1/94] Global AdministratorGet-MgUser : Resource '58a7761f-0793-4088-a63c-d41ca1b3bfee' does not exist or one of its queried reference-property
objects are not present.
At C:\Program
Files\WindowsPowerShell\Modules\Microsoft365DSC\DSCResources\MSFT_AADRoleSetting\MSFT_AADRoleSetting.psm1:230 char:9
Details of the scenario you tried and the problem that is occurring
Call Export-M365DSCConfiguration -Components @("AADRoleSetting") for a Role that has a Group set for Approvers
Verbose logs showing the problem
Connecting to {MicrosoftGraph}...✅
[1/1] Extracting [AADRoleSetting]...
|---[1/94] Global AdministratorGet-MgUser : Resource '58a7761f-0793-4088-a63c-d41ca1b3bfee' does not exist or one of its queried reference-property
objects are not present.
At C:\Program
Files\WindowsPowerShell\Modules\Microsoft365DSC\DSCResources\MSFT_AADRoleSetting\MSFT_AADRoleSetting.psm1:230 char:9
3) [Get-MgUser_ Get], RestException
1Suggested solution to the issue
Extend Get-TargetResource to also try Get-MgGroup if no valid User found
Extend Set-Target Resource with possibility to use Group Displayname/ObjectID
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
'dev'
The text was updated successfully, but these errors were encountered: