Additional features, settings, or issues not covered by specific Microsoft Teams categories
Hi @Glenn Maxwell,
Yes. The current Grant-CsApplicationAccessPolicy cmdlet includes a GrantToGroup parameter set, so an application access policy can be assigned to a group by using -Group. The -Rank parameter is optional.
Connect-MicrosoftTeams
New-CsApplicationAccessPolicy `
-Identity "TeamsPolicy1" `
-AppIds "<app-client-id>" `
-Description "Meeting access for a group"
Grant-CsApplicationAccessPolicy `
-PolicyName "TeamsPolicy1" `
-Group "<group-object-id>"
Can an on-premises group synchronized to Microsoft Entra ID be used?
Microsoft supports group policy assignment to Microsoft 365 groups, security groups, and distribution lists. The documentation does not identify synchronized groups as a separate unsupported category. Therefore, provided that the group has synchronized successfully and exists as a group object in Microsoft Entra ID, you should be able to use its Microsoft Entra object ID with -Group. Using the object ID also avoids ambiguity when identifying the synchronized group. For your reference: Assign policies to users and groups.
Does the security group need to be mail-enabled?
No. A security group does not need to be mail-enabled solely for Teams group policy assignment. Microsoft lists security groups and distribution lists as separate supported group types.
Are there additional prerequisites or limitations?
- Only direct members of the group receive the inherited policy. Membership through a nested group is not processed.
- Groups with
HiddenGroupMembershipenabled cannot be used for group policy assignment. - A policy assigned directly to a user takes precedence over a policy inherited from a group.
- If a user belongs to multiple groups with assignments of the same policy type, the assignment with the lowest rank number has the highest priority. If
-Rankis omitted, the assignment receives the lowest priority. - The assignment is applied to the group immediately, but propagation to individual members is a background operation and can take some time.
The application must also have an applicable Microsoft Graph application permission and the required administrator consent. The application access policy controls which users the application can act on behalf of; it does not replace the required Microsoft Graph permission. Microsoft notes that policy changes can take up to 30 minutes to affect Microsoft Graph REST API calls. See Configure application access to online meetings or virtual events.
In summary, your synchronized mail-enabled security group should be usable after it has synchronized successfully to Microsoft Entra ID and can be resolved by Teams PowerShell. Mail enablement is not required, and using the group’s Microsoft Entra object ID is the clearest way to target it.
Thank you for taking the time. If you have any further questions or would like to discuss anything else, feel free to reply anytime, and I'll be happy to assist.
If the answer is helpful, please kindly click "Yes" button below. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.