-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
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
Cannot find O365AdminAuditLogConfig and O365OrgCustomizationSetting's compiled permissions #2517
Comments
@batehurry - The underlying cmdlets are EXO PowerShell cmdlets, not Graph. You'd need to follow the EXO permissions configuration in the user guide. If further scoping is required you can use the Get-ManagementRole cmdlet to determine the additional EXO permissions. |
@mlhickey |
@batehurry - I think that should be the path. I'll defer to the author of the resource as the associated settings.json files are not currently populated, hence no return when running Get-M365DSCCompiledPermissionList. |
So, May I know which permissions do you prefer to set. Thanks. |
@ykuijs Could you help with a settings.json file for this resource? |
Here are the required roles: O365AdminAuditLogConfig
O365OrgCustomizationSetting
We will update the settings.json files for next release to reflect this. |
Thanks |
Dear,
Details of the scenario you tried and the problem that is occurring
When I used cmdlet Export-M365DSCConfiguration to export the component O365AdminAuditLogConfig with CertificateThumbprint,
It shows error "Extracting [O365AdminAuditLogConfig] using {CertificateThumbprint}...UnAuthorized".
Then I tried to execute cmdlet "Get-M365DSCCompiledPermissionList -ResourceNameList @("O365AdminAuditLogConfig") -Source 'Graph' -PermissionsType 'Application'" to get the permission, it returned empty value of ReadPermissions and UpdatePermissions.
The scripts I used:
Export-M365DSCConfiguration -Components @("O365AdminAuditLogConfig") -ApplicationId 'XXX' -TenantId 'XXX' -CertificateThumbprint 'XXX' -Path 'C:\Temp'
Get-M365DSCCompiledPermissionList -ResourceNameList @("O365AdminAuditLogConfig") -Source 'Graph' -PermissionsType 'Application'
Also the component O365OrgCustomizationSetting configuration exporting has same issue.
Could you like to advise the permission list of O365OrgCustomizationSetting and O365AdminAuditLogConfig.
Thanks.
The text was updated successfully, but these errors were encountered: