Get-CsOnlineDialOutPolicy
Use the Get-CsOnlineDialOutPolicy
cmdlet to get all the available outbound calling restriction policies in your organization.
Syntax
Get-CsOnlineDialOutPolicy
[[-Identity] <string>]
[<CommonParameters>]
Get-CsOnlineDialOutPolicy
[-Filter <string>]
[<CommonParameters>]
Description
In Microsoft Teams, outbound calling restriction policies are used to restrict the type of audio conferencing and end user PSTN calls that can be made by users in your organization. The policies apply to all the different PSTN connectivity options for Microsoft Teams; Calling Plan, Direct Routing, and Operator Connect.
To get all the available policies in your organization run Get-CsOnlineDialOutPolicy
.
To assign one of these policies to a user run Grant-CsDialoutPolicy
.
Examples
Example 1
Get-CsOnlineDialOutPolicy
In Example 1, Get-CsOnlineDialOutPolicy
is called without any additional parameters; this returns a collection of all the outbound calling restriction policies configured for use in your organization.
Example 2
Get-CsOnlineDialOutPolicy -Identity DialoutCPCandPSTNDisabled
In Example 2, Get-CsOnlineDialOutPolicy
is used to return the per-user outbound calling restriction policy that has an Identity DialoutCPCandPSTNDisabled. Because identities are unique, this command will never return more than one item.
Parameters
-Filter
Enables you to use wildcard characters when indicating the policy (or policies) to be returned. To return a collection of all the per-user policies, use this syntax: -Filter "tag:*".
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
-Identity
Unique identifier of the outbound calling restriction policy to be returned. To refer to the global policy, use this syntax: "-Identity Global". To refer to a per-user policy, use syntax similar to this: -Identity DialoutCPCandPSTNDisabled.
If this parameter is omitted, then all the outbound calling restriction policies configured for use in your tenant will be returned.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
System.Object