Skip to content
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

MSFT_AADAuthorizationPolicy: Missing available settings #3492

Closed
techthoughts2 opened this issue Jul 22, 2023 · 0 comments · Fixed by #3527 or #3568
Closed

MSFT_AADAuthorizationPolicy: Missing available settings #3492

techthoughts2 opened this issue Jul 22, 2023 · 0 comments · Fixed by #3527 or #3568
Assignees
Labels
Enhancement New feature or request Entra ID

Comments

@techthoughts2
Copy link

Details of the scenario you tried and the problem that is occurring

I would like to use this resource to configure Tenant settings such as:

AllowedToCreateTenants
AllowedToReadBitlockerKeysForOwnedDevice

These settings are part of the DefaultUserRolePermissions.

However, while these settings are available to be set in the PowerShell SDK, they are not available to be set via this resource.

Verbose logs showing the problem

$a = Get-MgPolicyAuthorizationPolicy

$a.DefaultUserRolePermissions | fl

AllowedToCreateApps                      : True
AllowedToCreateSecurityGroups            : True
AllowedToCreateTenants                   : False
AllowedToReadBitlockerKeysForOwnedDevice : True
AllowedToReadOtherUsers                  : True
PermissionGrantPoliciesAssigned          : {ManagePermissionGrantsForSelf.microsoft-user-default-legacy}
AdditionalProperties                     : {}

Suggested solution to the issue

Add the following options to be set for this resource:

AllowedToCreateTenants
AllowedToReadBitlockerKeysForOwnedDevice

Update-MgBetaPolicyAuthorizationPolicy supports updating these two settings under the DefaultUserRolePermissions.

This change would be made here:
https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/DSCResources/MSFT_AADAuthorizationPolicy/MSFT_AADAuthorizationPolicy.psm1

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A - it is not possible to set the two settings via DSC at this time.

The operating system the target node is running

N/A - it is not possible to set the two settings via DSC at this time.

Version of the DSC module that was used ('dev' if using current dev branch)

1.23.719.1

@andikrueger andikrueger added Enhancement New feature or request Entra ID labels Jul 24, 2023
@NikCharlebois NikCharlebois self-assigned this Jul 28, 2023
NikCharlebois added a commit to NikCharlebois/Microsoft365DSC that referenced this issue Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Entra ID
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants