Forum Discussion
Exchange Online Missing Get-DynamicDistributionGroup
- Aug 15, 2019
If you only get the Set- cmdlet, you most likely dont have the relevant role assigned ("Distribution Groups"), as the role should also contain the New-/Remove- cmdlets, in addition to the Get- one.
In particular the Set-DynamicDistributionGroup can also be granted as part of the MyDistributionGroups role, part of the default role assignment policy. And the role in question does not contain any of the other DDG cmdlets:
# Get-ManagementRoleEntry "MyDistributionGroups\*-DynamicDistributionGroup" Name Role Parameters ---- ---- ---------- Set-DynamicDistributionGroup MyDistributionGroups {ErrorAction, ErrorVariable, Identity, MailTip, MailTipTranslations, OutBuffer, OutVariable}which looks exactly what you are getting.
If you only get the Set- cmdlet, you most likely dont have the relevant role assigned ("Distribution Groups"), as the role should also contain the New-/Remove- cmdlets, in addition to the Get- one.
In particular the Set-DynamicDistributionGroup can also be granted as part of the MyDistributionGroups role, part of the default role assignment policy. And the role in question does not contain any of the other DDG cmdlets:
# Get-ManagementRoleEntry "MyDistributionGroups\*-DynamicDistributionGroup"
Name Role Parameters
---- ---- ----------
Set-DynamicDistributionGroup MyDistributionGroups {ErrorAction, ErrorVariable, Identity, MailTip, MailTipTranslations, OutBuffer, OutVariable}
which looks exactly what you are getting.
VasilMichevThank you so much! I don't have access to the cmdlets to see what role is needed, so that is very helpful 🙂