Skip to content

Commit f04eac4

Browse files
authored
Merge pull request MicrosoftDocs#4887 from get-itips/patch-139
Adding a working example of SharingCapability
2 parents f87c014 + e6a068e commit f04eac4

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 7 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)