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

ExoRoleGroup: Member assignment issue for Role Groups with empty members #4977

Closed
tayhall opened this issue Aug 21, 2024 · 0 comments · Fixed by #4978
Closed

ExoRoleGroup: Member assignment issue for Role Groups with empty members #4977

tayhall opened this issue Aug 21, 2024 · 0 comments · Fixed by #4978
Labels
Bug Something isn't working Exchange Online V1.24.731.1 Version 1.24.731.1

Comments

@tayhall
Copy link
Contributor

tayhall commented Aug 21, 2024

Description of the issue

If you try to set a Role Group that has no members the code cannot compare the existing members to the members that should be set.

Microsoft 365 DSC Version

V124.7.31.1

Which workloads are affected

Exchange Online

The DSC configuration

EXORoleGroups = @( 
        @{
            Description = "Members of this management role group can view and manage the configuration for individual recipients and view recipients in an Exchange organization. Members of this role group can only manage the configuration each user can manage on his or her own mailbox. Additional  permissions can be added by assigning additional management roles to this role group.";
            Ensure      = "Present";
            Name        = "Help Desk";
            Roles       = @("User Options","View-Only Recipients","Reset Password");
            Members     = @("A-New-Group");
        }

Verbose logs showing the problem

InvalidData: Cannot bind argument to parameter 'ReferenceObject' because it is null.
InvalidOperation: The PowerShell DSC resource '[EXORoleGroup]EXORoleGroup-Help Desk::[Exchange]Exchange_Configuration' with SourceInfo 'redacted path\m365-dsc-configuration\M365Config\0.0.1\DscResources\Exchange\Exchange.schema.psm1::1074::9::EXORoleGroup' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
InvalidData: Cannot bind argument to parameter 'ReferenceObject' because it is null.

Environment Information + PowerShell Version

Windows 11 and PS5.1
@andikrueger andikrueger added Bug Something isn't working Exchange Online V1.24.731.1 Version 1.24.731.1 labels Aug 21, 2024
@ykuijs ykuijs linked a pull request Aug 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Exchange Online V1.24.731.1 Version 1.24.731.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants