Skip to content

Commit 0b80c87

Browse files
authored
Merge pull request #12170 from MicrosoftDocs/main
publish main to live, 10/11/24, 3:30 pm
2 parents 25e0a69 + 6b384d7 commit 0b80c87

File tree

2 files changed

+57
-2
lines changed

2 files changed

+57
-2
lines changed

teams/teams-ps/teams/New-CsExternalAccessPolicy.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ For information about external access in Microsoft Teams, see [Manage external a
2424
## SYNTAX
2525

2626
```powershell
27-
New-CsExternalAccessPolicy [-Tenant <Guid>] [-Description <String>] [-EnableFederationAccess <Boolean>] [-EnableAcsFederationAccess <Boolean>]
27+
New-CsExternalAccessPolicy [-Tenant <Guid>] [-Description <String>] [-EnableFederationAccess <Boolean>] [-CommunicationWithExternalOrgs <Boolean>] [-AllowedExternalDomains <List>] [-BlockedExternalDomains <List>] [-EnableAcsFederationAccess <Boolean>]
2828
[-EnableXmppAccess <Boolean>] [-EnablePublicCloudAccess <Boolean>]
2929
[-EnablePublicCloudAudioVideoAccess <Boolean>] [-EnableTeamsConsumerAccess <Boolean>] [-EnableTeamsConsumerInbound <Boolean>] [-EnableOutsideAccess <Boolean>] [-Identity] <XdsIdentity>
3030
[-InMemory] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -113,6 +113,14 @@ Finally, the last command uses the Set-CsExternalAccessPolicy cmdlet to create a
113113
If you do not call the Set-CsExternalAccessPolicy cmdlet, then the virtual policy will disappear as soon as you end your Windows PowerShell session or delete the variable $x.
114114
Should that happen, an external access policy with the Identity RedmondAccessPolicy will never be created.
115115

116+
### -------------------------- Example 5 ------------------------
117+
```
118+
New-CsExternalAccessPolicy -Identity GranularFederationExample -CommunicationWithExternalOrgs "AllowSpecificExternalDomains" -AllowedExternalDomains @("example1.com", "example2.com")
119+
Set-CsTenantFederationConfiguration -CustomizeFederation $true
120+
```
121+
122+
In this example, we create an ExternalAccessPolicy named "GranularFederationExample" that allows communication with specific external domains, namely `example1.com` and `example2.com`. The federation policy is set to restrict communication to only these allowed domains. After that, we still have to enable the `CustomizeFederation` setting in the TenantFederationConfiguration to allow the federation settings as defined in the ExternalAccessPolicy to work.
123+
116124
## PARAMETERS
117125

118126
### -Identity
@@ -171,6 +179,53 @@ Accept pipeline input: False
171179
Accept wildcard characters: False
172180
```
173181
182+
### -CommunicationWithExternalOrgs
183+
Indicates how the users get assigned by this policy can communicate with the external orgs. There are 5 options:
184+
* OrganizationDefault: the users of this policy will follow the federation settings defined in TenantFederationConfiguration
185+
* AllowAllExternalDomains: the users are open to communicate with all domains
186+
* AllowSpecificExternalDomains: the users can only communicate with the users of the domains defined in `AllowedExternalDomains`
187+
* BlockSpecificExternalDomains: only users from the domains defined in `BlockedExternalDomains` are blocked from communicating with the users of this policy
188+
* BlockAllExternalDomains: the users are not able to communicate with any external domains
189+
```yaml
190+
Type: String
191+
Parameter Sets: (All)
192+
Aliases:
193+
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
194+
Required: False
195+
Position: Named
196+
Default value: OrganizationDefault
197+
Accept pipeline input: False
198+
Accept wildcard characters: False
199+
```
200+
201+
### -AllowedExternalDomains
202+
Indicates the domains that are allowed to communicate with the users of this policy. This is referenced only when `CommunicationWithExternalOrgs` is set to be `AllowSpecificExternalDomains`
203+
```yaml
204+
Type: List
205+
Parameter Sets: (All)
206+
Aliases:
207+
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
208+
Required: False
209+
Position: Named
210+
Default value: None
211+
Accept pipeline input: False
212+
Accept wildcard characters: False
213+
```
214+
215+
### -BlockedExternalDomains
216+
Indicates the domains that are blocked from communicating with the users of this policy. This is referenced only when `CommunicationWithExternalOrgs` is set to be `BlockSpecificExternalDomains`
217+
```yaml
218+
Type: List
219+
Parameter Sets: (All)
220+
Aliases:
221+
Applicable: Lync Server 2010, Lync Server 2013, Skype for Business Server 2015, Skype for Business Server 2019
222+
Required: False
223+
Position: Named
224+
Default value: None
225+
Accept pipeline input: False
226+
Accept wildcard characters: False
227+
```
228+
174229
### -EnableTeamsConsumerAccess
175230
(Microsoft Teams Only) Indicates whether the user is allowed to communicate with people who have who are using Teams with an account that's not managed by an organization.
176231

teams/teams-ps/teams/New-CsTeamsWorkLocationDetectionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ author: artemiykozlov
1111
# New-CsTeamsWorkLocationDetectionPolicy
1212

1313
## SYNOPSIS
14-
This cmdlet is used to create a new instance of the TeamsWorkLocationDetectionPolicy. The end user experience utilizing this policy is currently under development and has not been made generally available. You can see updates on when it will be generally available at [Microsoft 365 Roadmap | Microsoft 365](https://www.microsoft.com/en-us/microsoft-365/roadmap?msockid=287ab43847c06d0008cca05b46076c18&filters=&searchterms=automatically%2Cset%2Cwork%2Clocation).
14+
This cmdlet is used to create a new instance of the TeamsWorkLocationDetectionPolicy. The end user experience utilizing this policy has rolled out to the general public. You can see updates at [Microsoft 365 Roadmap | Microsoft 365](https://www.microsoft.com/en-us/microsoft-365/roadmap?msockid=287ab43847c06d0008cca05b46076c18&filters=&searchterms=automatically%2Cset%2Cwork%2Clocation%22https://www.microsoft.com/en-us/microsoft-365/roadmap?msockid=287ab43847c06d0008cca05b46076c18&filters=&searchterms=automatically%2cset%2cwork%2clocation%22) and to learn more on how to enable the end user experience, please see [Setting up Bookable Desks in Microsoft Teams - Microsoft Teams | Microsoft Learn.](/microsoftteams/rooms/bookable-desks)
1515

1616
## SYNTAX
1717

0 commit comments

Comments
 (0)