AADGroupsSettings doesn't contain group settings
Description of the issue
Hi, I have just discovered this wonderful tool and I know it's open source and based on voluntary work so bear with me when I ask about this feature.
When I go to Entra ID group settings I see a bunch of attributes where only 1 of them is present in MS365DSC AADGroupsSettings. All the other ones I don't even know where they are. Am I misunderstanding something or should they be present but nobody had time to look at it?
I also encountered similar issue with AADExternalIdentityPolicy that doesn't include whitelisted external domains and also I cannot find any user settings attributes.
So to summarize is AAD a priority and if yes what am I missing?
Microsoft 365 DSC Version
1.26.121.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
@artorro Unfortunately the group settings you mentioned are not fully supported with Microsoft Graph. 3 of the 4 settings are managed by another backend for which Microsoft365DSC does not have access to. Without Microsoft migrating these settings all over to Graph, we don't have a possibility to manage them.
Same goes for the AADExternalIdentityPolicy. I believe you mean the collaboration restrictions, right?
This also targets the other backend we cannot support at the moment.
And then the User Attributes target one more backend... As you can probably see, it's not that we do not want to support it, but we simply can't since there are so many endpoints for the settings. Some of them might get added in the future.
This also targets the other backend we cannot support at the moment.
Is there a way to build a business case and send it to our CSAM so you have some leverage internally to have the settings exposed through some M365DSC supported API?
@NikCharlebois Something for you, although I don't believe you can do anything at the moment. I'm just a volunteer here (not working for Microsoft) and have no influence on the decisions being taken for the API management.
Thanks for all the comments.
I have been digging more into it and I have found out that many of the settings are located in MS365DSC various places moreover the whitelist for external domains is actually something that can be extracted via mgGraph but just not in DSC.
Here are my findings maybe it can be useful for someone else:
| UI | Attribute | MS365DSC |
|---|---|---|
| User Settings | Default user role permissions – Users can register applications | AADAuthorizationPolicy - DefaultUserRoleAllowedToCreateApps |
| User Settings | Default user role permissions – Restrict non-admin users from creating tenants | AADAuthorizationPolicy - DefaultUserRoleAllowedToCreateTenants |
| User Settings | Default user role permissions – Users can create security groups | AADAuthorizationPolicy - DefaultUserRoleAllowedToCreateSecurityGroups |
| User Settings | Guest user access – Guest user access restrictions | AADAuthorizationPolicy - GuestUserRole |
| User Settings | Administration center – Restrict access to Microsoft Entra admin center | |
| User Settings | LinkedIn account connections – Allow users to connect their work or school account with LinkedIn | |
| User Settings | Show keep user signed in – Show keep user signed in | |
| External collaboration settings | Guest user access – Guest user access restrictions | AADAuthorizationPolicy - GuestUserRole |
| External collaboration settings | Guest invite settings – Guest invite restrictions | AADAuthorizationPolicy - AllowInvitesFrom |
| External collaboration settings | Enable guest self-service sign up via user flows | |
| External collaboration settings | External user leave settings – Allow external users to remove themselves from your organization | AADExternalIdentityPolicy - AllowExternalIdentitiesToLeave |
| External collaboration settings | Collaboration restrictions – Invitation policy | |
| External collaboration settings | Collaboration restrictions – Target domains | Alternative: $policies = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/beta/policies/b2bManagementPolicies" |
| User features | Users can use preview features for My Apps | |
| User features | Administrators can access My Staff | |
| Groups settings | Self Service Group Management – Owners can manage group membership requests in My Groups | |
| Groups settings | Self Service Group Management – Restrict user ability to access groups features in My Groups | |
| Groups settings | Security Groups – Users can create security groups in Azure portals, API, or PowerShell | |
| Groups settings | Microsoft 365 Groups – Users can create Microsoft 365 groups in Azure portals, API, or PowerShell | AADGroupsSettings - EnableGroupCreation |
Quick note here:
Enable guest self-service sign up via user flows is available in AADAuthenticationFlowPolicy as SelfServiceSignUpEnabled.
I'm working on a resource with which you'll be able to manage the target domains.
Target domains can be managed with AADB2BManagementPolicy.