diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOSite.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOSite.md index e6f868da7..f9ae4f44b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOSite.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOSite.md @@ -162,6 +162,14 @@ Get-SPOSite -Filter "Owner -like '$($userUPN)'" ``` This example retrieves all sites filtering by the specified owner using a variable. +### EXAMPLE 13 + +```powershell +Get-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 | Select-Object Url, RestrictedForAITeammates +``` + +This example returns whether AI teammates are restricted from accessing the site. The property is currently under private preview. If the private preview isn't enabled for the tenant, `RestrictedForAITeammates` returns `False`. + ## PARAMETERS ### -ArchiveStatus diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md index defbfea90..1ea944a2f 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md @@ -62,6 +62,7 @@ Set-SPOSite [-Identity] [-Owner ] [-Title ] [- [-DefaultShareLinkScope ] [-DefaultShareLinkRole ] [-BlockGuestsAsSiteAdmin ] [-RestrictContentOrgWideSearch ] [-RestrictedContentDiscoveryforCopilotAndAgents ] + [-RestrictedForAITeammates ] [-RestrictedAccessControl ] [-RestrictedAccessControlGroups ] [-ListsShowHeaderAndNavigation ] [-HidePeoplePreviewingFiles ] [-HidePeopleWhoHaveListsOpen ] [-IsAuthoritative ] [-AllowFileArchive ] @@ -385,6 +386,15 @@ Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -RemoveVersionE Example 24 removes the version history limit override for video and audio file types at the site level. The new document libraries will use this version setting. +### Example 25 + +```powershell +Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -RestrictedForAITeammates $true +Get-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 | Select-Object Url, RestrictedForAITeammates +``` + +Example 25 restricts AI teammates from accessing the site and then returns the configured value. The policy is enforced at runtime and doesn't remove existing permissions. + ## PARAMETERS ### -AddInformationSegment @@ -2108,6 +2118,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RestrictedForAITeammates + +> Applicable: SharePoint Online + +Specifies whether AI teammates are restricted from accessing the site. Set this parameter to `$true` to block AI teammates at runtime, or `$false` to remove the site restriction. Changing this setting doesn't remove existing permissions. + +This parameter is currently under private preview. If the private preview isn't enabled for the tenant, setting this parameter has no effect. + +```yaml +Type: System.Boolean +Parameter Sets: ParamSet1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RestrictedToGeo > Applicable: SharePoint Online