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

AADGroup: Add Exchange Online Microsoft 365 Group parameters e.g. UnifiedGroupWelcomeMessageEnabled #3089

Closed
Borgquite opened this issue Mar 29, 2023 · 5 comments · Fixed by #3112 or #3140

Comments

@Borgquite
Copy link
Contributor

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

AADGroup is the resource that allows creation of Microsoft 365 Groups (using GroupType = 'Unified')

For these group types there are a lot of of Exchange-related attributes that an administrator would need to get/set/test.

https://learn.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps

It would be especially helpful to have AutoSubscribeNewMembers, HiddenFromAddressListsEnabled, HiddenFromExchangeClientsEnabled, PrimarySmtpAddress and UnifiedGroupWelcomeMessageEnabled.

  • AcceptMessagesOnlyFromSendersOrMembers
  • AlwaysSubscribeMembersToCalendarEvents
  • AuditLogAgeLimit
  • AutoSubscribeNewMembers
  • CalendarMemberReadOnly
  • Classification
  • ConnectorsEnabled
  • CustomAttribute1 through CustomAttribute15
  • DataEncryptionPolicy
  • EmailAddresses
  • ExtensionCustomAttribute1 through ExtensionCustomAttribute5
  • GrantSendOnBehalfTo
  • HiddenFromAddressListsEnabled
  • HiddenFromExchangeClientsEnabled
  • InformationBarrierMode
  • IsMemberAllowedToEditContent
  • Language
  • MailboxRegion
  • MailTip
  • MailTipTranslations
  • MaxReceiveSize
  • MaxSendSize
  • ModeratedBy
  • ModerationEnabled
  • Notes
  • PrimarySmtpAddress
  • RejectMessagesFromSendersOrMembers
  • RequireSenderAuthenticationEnabled
  • SensitivityLabelId
  • SubscriptionEnabled
  • UnifiedGroupWelcomeMessageEnabled

Verbose logs showing the problem

N/A

Suggested solution to the issue

Implement the ability to get, set and test these attributes when groups are created/updated withg GroupType = 'Unified'

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

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $credsAdmin
    )
    Import-DscResource -ModuleName Microsoft365DSC

    node localhost
    {
        AADGroup 'MyGroups'
        {
            DisplayName                       = "DSCGroup"
            Description                       = "Microsoft DSC Group"
            SecurityEnabled                   = $True
            MailEnabled                       = $True
            GroupTypes                        = @("Unified")
            MailNickname                      = "M365DSC"
            Visibility                        = "Private"
            UnifiedGroupWelcomeMessageEnabled = $False
            Ensure                            = "Present"
            Credential                        = $credsGlobalAdmin
        }
    }
}

The operating system the target node is running

N/A

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

1.23.322.1

@Borgquite
Copy link
Contributor Author

Similar to #2761

@andikrueger andikrueger added Entra ID Enhancement New feature or request labels Mar 30, 2023
@NikCharlebois
Copy link
Collaborator

Would it make sense to create a separate resource named EXOGroupSettings for this instead? AADGroup is leveraging the Get-MgGroup cmdlet under the cover, which doesn't support these properties.

@Borgquite
Copy link
Contributor Author

If that's easier to implement. It will make configurations larger but I can see why 'under the covers' this makes more sense.

@NikCharlebois
Copy link
Collaborator

Small gift before the week-end:
#3112
:)

@Borgquite
Copy link
Contributor Author

Ta - will make use of this in the next release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants