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

AADAuthorizationPolicy: PermissionGrantPolicyIdsAssignedToDefaultUserRole property not working #3594

Closed
mibarm opened this issue Aug 22, 2023 · 2 comments

Comments

@mibarm
Copy link
Contributor

mibarm commented Aug 22, 2023

Description of the issue

The parameter 'PermissionGrantPolicyIdsAssignedToDefaultUserRole' is no longer working properly (since the change to Graph Beta 2.x cmdlets.

Get-MgBetaPolicyAuthorizationPolicy provides the property not under
.DefaultUserRolePermissions.PermissionGrantPoliciesAssigned but directly on PermissionGrantPolicyIdsAssignedToDefaultUserRole

Microsoft 365 DSC Version

1.23.809.1

Which workloads are affected

Azure Active Directory

The DSC configuration

AADAuthorizationPolicy "AADAuthorizationPolicy"
{
AllowedToSignUpEmailBasedSubscriptions = $True;
AllowedToUseSSPR = $True;
AllowEmailVerifiedUsersToJoinOrganization = $False;
AllowInvitesFrom = "everyone";
BlockMsolPowerShell = $False;
Credential = $Credscredential;
DefaultUserRoleAllowedToCreateApps = $True;
DefaultUserRoleAllowedToCreateSecurityGroups = $True;
DefaultUserRoleAllowedToCreateTenants = $True;
DefaultUserRoleAllowedToReadBitlockerKeysForOwnedDevice = $True;
DefaultUserRoleAllowedToReadOtherUsers = $True;
Description = "Used to manage authorization related settings across the company.";
DisplayName = "Authorization Policy";
Ensure = "Present";
GuestUserRole = "Guest";
IsSingleInstance = "Yes";
PermissionGrantPolicyIdsAssignedToDefaultUserRole = @("ManagePermissionGrantsForSelf.microsoft-user-default-legacy");
}

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

@mibarm
Copy link
Contributor Author

mibarm commented Aug 22, 2023

Pull Request: #3595

@ykuijs
Copy link
Member

ykuijs commented Aug 30, 2023

Closed via PR #3595

@ykuijs ykuijs closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants