Home » Microsoft » MS-302 » How should you complete the command?
HOTSPOT
You have a Microsoft 365 subscription.
You need to ensure that when users create a site, they can specify the sensitivity of the site.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Correct Answer:
Explanation/Reference:
Box 1: ClassificationList
ClassificationList is a comma-delimited list of valid classification values that can be applied to Office 365 Groups.
Box 2: Set-AzureADDirectorySetting
Example (see step 5):
1. Get all the setting templates:
Get-AzureADDirectorySettingTemplate
2. To set guest policy for groups at the directory level, you need Group.Unified template
$Template = Get-AzureADDirectorySettingTemplate -Id 62375ab9-6b52-47ed-826b-58e47e0e304b
3. Next, create a new settings object based on that template:
$Setting = $template.CreateDirectorySetting()
4. Then update AllowToAddGuests setting
$Setting[“AllowToAddGuests”] = $False
5. Then apply the setting:
Set-AzureADDirectorySetting -Id (Get-AzureADDirectorySetting | where -Property DisplayName -Value “Group.Unified” -EQ).id -DirectorySetting $Setting
References:
https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-settings-cmdlets