Group and team owners can authorize applications, such as applications published by third-party vendors, to access your organization's data associated with a group. For example, a team owner in Microsoft Teams can allow an app to read all Teams messages in the team, or list the basic profile of a group's members. See Resource-specific consent in Microsoft Teams to learn more.
Prerequisites
To complete the tasks in this guide, you need the following:
Select Azure Active Directory > Enterprise applications > Consent and permissions > User consent settings.
Under Group owner consent for apps accessing data select the option you'd like to enable.
Select Save to save your settings.
In this example, all group owners are allowed to consent to apps accessing their groups' data:
You can use the Azure AD PowerShell Preview module, AzureADPreview, to enable or disable group owners' ability to consent to applications accessing your organization's data for the groups they own.
Make sure you're using the AzureADPreview module. This step is important if you have installed both the AzureAD module and the AzureADPreview module).
Retrieve the current value for the Consent Policy Settings directory settings in your tenant. This requires checking if the directory settings for this feature have been created, and if not, using the values from the corresponding directory settings template.
Understand the setting values. There are two settings values that define which users would be able to allow an app to access their group's data:
Setting
Type
Description
EnableGroupSpecificConsent
Boolean
Flag indicating if groups owners are allowed to grant group-specific permissions.
ConstrainGroupSpecificConsentToMembersOfGroupId
Guid
If EnableGroupSpecificConsent is set to "True" and this value set to a group's object ID, members of the identified group will be authorized to grant group-specific permissions to the groups they own.
Update settings values for the desired configuration:
# Enable group-specific consent for all users
$enabledValue.Value = "True"
$limitedToValue.Value = ""
# Enable group-specific consent for users in a given group
$enabledValue.Value = "True"
$limitedToValue.Value = "{group-object-id}"
Save your settings.
if ($settings.Id) {
# Update an existing directory settings
Set-AzureADDirectorySetting -Id $settings.Id -DirectorySetting $settings
} else {
# Create a new directory settings to override the default setting
New-AzureADDirectorySetting -DirectorySetting $settings
}
Note
"User can consent to apps accessing company data on their behalf" setting, when turned off, does not disable the "Users can consent to apps accessing company data for groups they own" option