We aim to use PowerShell to create dynamic groups for MS365.
Dynamic groups cannot be created using the examples described in the official reference.
I'd like to ask you to teach me.
PSC:\>New-AzureADMSGroup-DisplayName "Dynamic Group 01" - Description "Dynamic Group created from PS" - MailEnabled $False-MailNickName "group" - SecurityEnabled $True-GroupTypes "DynamicMembership" -Membership(Membership)
The following error will appear for this:
New-AzureADMSGroup: No matching parameter found for parameter name 'membershipRule'.
I suspect AzureAD will not be able to create dynamic groups despite the references (do I need to use ExchangePowerShell?).
azure powershell microsoft-graph microsoft-teams
Are you using AzureAD module or AzureADPreview module?It seems that AzureADPreview supports membershipRule.If you are using the AzureAD module, could you try the AzureADReview module?
Reference: https://github.com/MicrosoftDocs/azure-docs/issues/34263#issuecomment-510978402
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.