Skip to content

Commit dff5844

Browse files
authored
Merge pull request #12777 from pavellatif/main
Updating end user notification and phone number Filter options
2 parents 3a39240 + 530dadf commit dff5844

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,28 @@ Get-CsPhoneNumberAssignment [-ActivationState <string>] [-AssignedPstnTargetId <
2828
```
2929

3030
## DESCRIPTION
31-
This cmdlet displays information about one or more phone numbers. You can filter the phone numbers to return by using different parameters.
32-
33-
Returned results are sorted by TelephoneNumber in ascending order.
31+
This cmdlet displays information about one or more phone numbers. You can filter the phone numbers to return by using different parameters. Returned results are sorted by TelephoneNumber in ascending order. Supported list of attributes for Filter are:
32+
- TelephoneNumber
33+
- OperatorId
34+
- PstnAssignmentStatus (also supported AssignmentStatus)
35+
- ActivationState
36+
- IsoCountryCode
37+
- Capability (also supported AcquiredCapabilities)
38+
- IsOperatorConnect
39+
- PstnPartnerName (also supported PartnerName)
40+
- LocationId
41+
- CivicAddressId
42+
- NetworkSiteId
43+
- NumberType
44+
- AssignedPstnTargetId (also supported TargetId)
45+
- TargetType
46+
- AssignmentCategory
47+
- ResourceAccountSharedCallingPolicySupported
48+
- SupportedCustomerActions
49+
- ReverseNumberLookup
50+
- RoutingOptions
51+
- SmsActivationState
52+
- Tags
3453

3554
If you are using both -Skip X and -Top Y for filtering, the returned results will first be skipped by X, and then the top Y results will be returned.
3655

teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ Set-CsPhoneNumberAssignment -Identity <String> -EnterpriseVoiceEnabled <Boolean>
4444
Set-CsPhoneNumberAssignment -PhoneNumber <string> -ReverseNumberLookup <string> [<CommonParameters>]
4545
```
4646

47+
### Notify
48+
```powershell
49+
Set-CsPhoneNumberAssignment -Identity <string> -PhoneNumber <string> -PhoneNumberType <String> -Notify [<CommonParameters>]
50+
```
51+
4752
## DESCRIPTION
4853
This cmdlet assigns a phone number to a user or resource account. When you assign a phone number the EnterpriseVoiceEnabled flag is automatically set to True.
4954

@@ -149,7 +154,11 @@ This example shows how to turn off reverse number lookup (RNL) on a phone number
149154
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber '+14255551234' -PhoneNumberType CallingPlan -AssignmentCategory Private
150155
```
151156
This example shows how to assign a private phone number (incoming calls only) to a user.
152-
157+
### Example 13
158+
```powershell
159+
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber '+14255551234' -PhoneNumberType CallingPlan -LocationId "7fda0c0b-6a3d-48b8-854b-3fbe9dcf6513" -Notify
160+
```
161+
This example shows how to send an email to Teams phone users informing them about the new telephone number assignment. Note: For assignment of India telephone numbers provided by Airtel, Teams Phone users will automatically receive an email outlining the usage guidelines and restrictions. This notification is mandatory and cannot be opted out of.
153162

154163
## PARAMETERS
155164

@@ -280,6 +289,20 @@ Accept pipeline input: False
280289
Accept wildcard characters: False
281290
```
282291
292+
### -Notify
293+
Sends an email to Teams phone user about new telephone number assignment.
294+
295+
```yaml
296+
Type: Switch
297+
Parameter Sets: (Assignment)
298+
Aliases:
299+
300+
Required: False
301+
Default value: None
302+
Accept pipeline input: False
303+
Accept wildcard characters: False
304+
```
305+
283306
### CommonParameters
284307
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
285308

0 commit comments

Comments
 (0)