Skip to content

Commit f763718

Browse files
authored
Adding a working example of SharingCapability
1 parent f87c014 commit f763718

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOSite.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@ Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnablePWA $tru
122122

123123
Example 6 enables the site "site1" to create Project Web Applications (PWA).
124124

125+
### -----------------------EXAMPLE 7-----------------------------
126+
127+
```powershell
128+
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -SharingCapability ExternalUserSharingOnly
129+
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -SharingDomainRestrictionMode AllowList -SharingAllowedDomainList "contoso.com"
130+
```
131+
132+
Example 6 sets the Sharing Capability to allow external users who accept sharing invitations and sign in as authenticated users and then specifies an email domain that is allowed for sharing with the external collaborators.
133+
134+
125135
## PARAMETERS
126136

127137
### -EnablePWA

0 commit comments

Comments
 (0)