You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example 6 shows how you can remove all the domains assigned to the allowed domains list for the current tenant, thereby blocking external communication for all users in the Tenant. In case `AllowFederatedUsers` is set to `True`, then explicit `ExternalAccessPolicy` instances can be leveraged to set a per-user federation setting.
115
+
To do this, simply include the AllowedDomains parameter and set the parameter value to null ($Null).
116
+
When this command completes, the allowed domain list will be cleared.
Example 6 shows how you can replace domains in the Allowed Domains using a List collection object.
126
+
Example 7 shows how you can replace domains in the Allowed Domains using a List collection object.
118
127
First, a List collection is created and domains are added to it, then, simply include the AllowedDomainsAsAList parameter and set the parameter value to the List object.
119
128
When this command completes, the allowed domains list will be replaced with those domains.
Example 7 shows how you can add domains to the existing Allowed Domains using a List object.
138
+
Example 8 shows how you can add domains to the existing Allowed Domains using a List object.
130
139
First, a List is created and domains are added to it, then use the Add method in the AllowedDomainsAsAList parameter to add the domains to the existing allowed domains list. When this command completes, the domains in the list will be added to any domains already on the AllowedDomains list.
Example 8 shows how you can remove domains from the existing Allowed Domains using a List object.
149
+
Example 9 shows how you can remove domains from the existing Allowed Domains using a List object.
141
150
First, a List is created and domains are added to it, then use the Remove method in the AllowedDomainsAsAList parameter to remove the domains from the existing allowed domains list. When this command completes, the domains in the list will be removed from the AllowedDomains list.
The command shown in Example 9 enables communication with people using Teams with an account that's not managed by an organization, to only be initiated by people in your organization. This means that people using Teams with an account that's not managed by an organization will not be able to discover or start a conversation with people in your organization.
157
+
The command shown in Example 10 enables communication with people using Teams with an account that's not managed by an organization, to only be initiated by people in your organization. This means that people using Teams with an account that's not managed by an organization will not be able to discover or start a conversation with people in your organization.
Using the `AllowedTrialTenantDomains` parameter, you can whitelist specific "trial-only" tenant domains, while keeping the `ExternalAccessWithTrialTenants` set to `Blocked`. Example 12 shows how you can set or replace domains in the Allowed Trial Tenant Domains using a List collection object.
191
+
Using the `AllowedTrialTenantDomains` parameter, you can whitelist specific "trial-only" tenant domains, while keeping the `ExternalAccessWithTrialTenants` set to `Blocked`. Example 13 shows how you can set or replace domains in the Allowed Trial Tenant Domains using a List collection object.
183
192
First, a List collection is created and domains are added to it, then, simply include the `AllowedTrialTenantDomains` parameter and set the parameter value to the List object.
184
193
When this command completes, the Allowed Trial Tenant Domains list will be replaced with those domains.
Example 13 shows another way to set a value of `AllowedTrialTenantDomains`. It uses array of objects and it always replaces value of the `AllowedTrialTenantDomains`. When this command completes, the result is the same as in example 12.
200
+
Example 14 shows another way to set a value of `AllowedTrialTenantDomains`. It uses array of objects and it always replaces value of the `AllowedTrialTenantDomains`. When this command completes, the result is the same as in example 13.
192
201
193
202
The array of `AllowedTrialTenantDomains` can be emptied by running the following command: `Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @()`.
Example 14 shows how you can add domains to the existing Allowed Trial Tenant Domains using a List collection object.
212
+
Example 15 shows how you can add domains to the existing Allowed Trial Tenant Domains using a List collection object.
204
213
First, a List is created and domains are added to it, then, use the Add method in the `AllowedTrialTenantDomains` parameter to add the domains to the existing allowed domains list.
205
214
When this command completes, the domains in the list will be added to any domains already on the Allowed Trial Tenant Domains list.
Example 15 shows how you can remove domains from the existing Allowed Trial Tenant Domains using a List collection object.
224
+
Example 16 shows how you can remove domains from the existing Allowed Trial Tenant Domains using a List collection object.
216
225
First, a List is created and domains are added to it, then use the Remove method in the `AllowedTrialTenantDomains` parameter to remove the domains from the existing allowed domains list.
217
226
When this command completes, the domains in the list will be removed from the Allowed Trial Tenant Domains list.
0 commit comments