Skip to content

Commit 2524ba3

Browse files
authored
Merge pull request MicrosoftDocs#9433 from JensTrier/UserCallingSettings
Update examples for Set/Get-CsUserCallingSettings
2 parents e07eea6 + ea947b2 commit 2524ba3

File tree

2 files changed

+41
-43
lines changed

2 files changed

+41
-43
lines changed

teams/teams-ps/teams/Get-CsUserCallingSettings.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Get-CsUserCallingSettings -Identity [email protected]
6060
SipUri : sip:[email protected]
6161
IsForwardingEnabled : True
6262
ForwardingType : Simultaneous
63-
ForwardingTarget : [email protected]
63+
ForwardingTarget : sip:[email protected]
6464
ForwardingTargetType : SingleTarget
6565
IsUnansweredEnabled : True
6666
UnansweredTarget :
@@ -74,8 +74,9 @@ GroupMembershipDetails :
7474
GroupNotificationOverride :
7575
```
7676

77-
This example shows that [email protected] has simultaneous ringing set (IsForwardingEnabled and ForwardingType) to [email protected] (ForwardingTarget and ForwardingTargetType)
78-
and if the call has not been answered (IsUnansweredEnabled) within 20 seconds (UnansweredDelay) the call is routed to voicemail (UnansweredTargetType).
77+
This example shows that [email protected] has simultaneous ringing set (IsForwardingEnabled and ForwardingType) to [email protected]
78+
(ForwardingTarget and ForwardingTargetType) and if the call has not been answered (IsUnansweredEnabled) within 20 seconds (UnansweredDelay) the call is routed
79+
to voicemail (UnansweredTargetType).
7980

8081
### Example 3
8182
```powershell
@@ -94,8 +95,8 @@ UnansweredDelay : 00:00:20
9495
Delegates :
9596
Delegators :
9697
CallGroupOrder : InOrder
97-
CallGroupTargets : {[email protected]}
98-
GroupMembershipDetails : CallGroupOwnerId:[email protected]
98+
CallGroupTargets : {sip:[email protected]}
99+
GroupMembershipDetails : CallGroupOwnerId:sip:[email protected]
99100
GroupNotificationOverride : Mute
100101
```
101102
```powershell
@@ -104,7 +105,7 @@ GroupNotificationOverride : Mute
104105
```output
105106
CallGroupOwnerId NotificationSetting
106107
---------------- -------------------
107-
108+
108109
```
109110

110111
This example shows that [email protected] has simultaneous ringing set to his/her call group (ForwardingTargetType) and that the call group contains [email protected]
@@ -128,7 +129,7 @@ IsUnansweredEnabled : True
128129
UnansweredTarget :
129130
UnansweredTargetType : Voicemail
130131
UnansweredDelay : 00:00:20
131-
Delegates : Id:[email protected]
132+
Delegates : Id:sip:[email protected]
132133
Delegators :
133134
CallGroupOrder : InOrder
134135
CallGroupTargets : {}
@@ -139,14 +140,14 @@ GroupNotificationOverride : Ring
139140
(Get-CsUserCallingSettings -Identity [email protected]).Delegates
140141
```
141142
```output
142-
143+
143144
MakeCalls : True
144145
ManageSettings : True
145146
ReceiveCalls : True
146147
```
147148

148-
This example shows that [email protected] has simultaneous ringing set to his/her delegates (ForwardingTargetType). [email protected] is the only delegate (Delegates) and
149-
that user has all the permissions you can have as a delegate (Delegates).
149+
This example shows that [email protected] has simultaneous ringing set to his/her delegates (ForwardingTargetType). [email protected] is the only delegate
150+
(Delegates) and that user has all the permissions you can have as a delegate (Delegates).
150151

151152
### Example 5
152153
```powershell
@@ -163,7 +164,7 @@ UnansweredTarget :
163164
UnansweredTargetType : Voicemail
164165
UnansweredDelay : 00:00:20
165166
Delegates :
166-
Delegators : Id:[email protected]
167+
Delegators : Id:sip:[email protected]
167168
CallGroupOrder : InOrder
168169
CallGroupTargets : {}
169170
GroupMembershipDetails :
@@ -173,14 +174,14 @@ GroupNotificationOverride : Ring
173174
(Get-CsUserCallingSettings -Identity [email protected]).Delegators
174175
```
175176
```output
176-
177+
177178
MakeCalls : True
178179
ManageSettings : True
179180
ReceiveCalls : True
180181
```
181182

182-
This example shows that [email protected] is a delegate of [email protected] (Delegators) and that [email protected] has given [email protected] all the permissions you can
183-
have as a delegate (Delegators).
183+
This example shows that [email protected] is a delegate of [email protected] (Delegators) and that [email protected] has given [email protected] all the
184+
permissions you can have as a delegate (Delegators).
184185

185186
### Example 6
186187
```powershell

teams/teams-ps/teams/Set-CsUserCallingSettings.md

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ Set-CsUserCallingSettings -Identity <String> -GroupNotificationOverride <String>
6060
## DESCRIPTION
6161
This cmdlet sets the call forwarding, simultaneous ringing and call group settings for the specified user.
6262

63-
When specifying settings you need to specify all settings with a settings grouping, for instance, you can't just change a forwarding target. Instead, you need to start by
64-
getting the current settings, making the necessary changes, and then setting/writing all settings within the settings group.
65-
63+
When specifying settings you need to specify all settings with a settings grouping, for instance, you can't just change a forwarding target. Instead, you need to
64+
start by getting the current settings, making the necessary changes, and then setting/writing all settings within the settings group.
6665

6766

6867
## EXAMPLES
@@ -93,7 +92,7 @@ This example shows setting unanswered call forward to the delegates after 30 sec
9392

9493
### Example 5
9594
```powershell
96-
95+
9796
Set-CsUserCallingSettings -Identity [email protected] -CallGroupOrder InOrder -CallGroupTargets $cgm
9897
Set-CsUserCallingSettings -Identity [email protected] -IsForwardingEnabled $true -ForwardingType Immediate -ForwardingTargetType Group
9998
```
@@ -103,21 +102,20 @@ This example shows creating a call group for [email protected] with 2 members an
103102
```powershell
104103
$ucs = Get-CsUserCallingSettings -Identity [email protected]
105104
$cgt = {$ucs.CallGroupTargets}.Invoke()
106-
$cgt.Add("[email protected]")
107-
$cgt.Remove("[email protected]")
105+
$cgt.Add("sip:[email protected]")
106+
$cgt.Remove("sip:[email protected]")
108107
Set-CsUserCallingSettings -Identity [email protected] -CallGroupOrder $ucs.CallGroupOrder -CallGroupTargets $cgt
109108
110109
$gmd = (Get-CsUserCallingSettings -Identity [email protected]).GroupMembershipDetails
111-
$gmd[[array]::IndexOf($gmd.CallGroupOwnerId,'[email protected]')].NotificationSetting = 'Banner'
110+
$gmd[[array]::IndexOf($gmd.CallGroupOwnerId,'sip:[email protected]')].NotificationSetting = 'Banner'
112111
Set-CsUserCallingSettings -Identity [email protected] -GroupMembershipDetails $gmd
113112
```
114113

115114
This example shows how to update the call group of [email protected] to add [email protected] and remove [email protected]. In addition the notification setting for
116115
[email protected] for [email protected]'s call group is set to Banner.
117116

118-
The key to note here is the call group membership is defined on the object of the owner of the call group, in the above case this is [email protected]. However, the notification
119-
120-
setting for a member for a particular call group is defined on the member. In this case [email protected].
117+
The key to note here is the call group membership is defined on the object of the owner of the call group, in the above case this is [email protected]. However,
118+
the notification setting for a member for a particular call group is defined on the member. In this case [email protected].
121119

122120
### Example 7
123121
```powershell
@@ -130,15 +128,14 @@ This example shows how to remove all members of the call group.
130128
### Example 8
131129
```powershell
132130
[Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.ICallGroupMembershipDetails[]]$gmd = @(
133-
[Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.ICallGroupMembershipDetails]@{CallGroupOwnerId='[email protected]';NotificationSetting='Banner'}
134-
[Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.ICallGroupMembershipDetails]@{CallGroupOwnerId='[email protected]';NotificationSetting='Mute'}
131+
[Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.ICallGroupMembershipDetails]@{CallGroupOwnerId='sip:[email protected]';NotificationSetting='Banner'}
132+
[Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.ICallGroupMembershipDetails]@{CallGroupOwnerId='sip:[email protected]';NotificationSetting='Mute'}
135133
)
136134
Set-CsUserCallingSettings -Identity [email protected] -GroupMembershipDetails $gmd
137135
```
138136

139-
In this example [email protected] is a member of two call groups: [email protected] and [email protected]. [email protected] would like to have Banner notification for the
140-
141-
first call group and Mute notification for the last one.
137+
In this example [email protected] is a member of two call groups: [email protected] and [email protected]. [email protected] would like to have Banner
138+
notification for the first call group and Mute notification for the last one.
142139

143140
### Example 9
144141
```powershell
@@ -221,8 +218,8 @@ Accept wildcard characters: False
221218
222219
The forwarding target type. Supported values are Voicemail, SingleTarget, MyDelegates and Group. Voicemail is only supported for Immediate forwarding.
223220
224-
SingleTarget is used when forwarding to another user or PSTN phone number. MyDelegates is used when forwarding to the users's delegates (there needs to be at least 1 delegate).
225-
Group is used when forwarding to the user's call group (it needs to have at least 1 member).
221+
SingleTarget is used when forwarding to another user or PSTN phone number. MyDelegates is used when forwarding to the users's delegates (there needs to be at least 1
222+
delegate). Group is used when forwarding to the user's call group (it needs to have at least 1 member).
226223
227224
```yaml
228225
Type: System.String
@@ -252,8 +249,8 @@ Accept wildcard characters: False
252249
253250
### -GroupMembershipDetails
254251
255-
The group membership details for the specified user. It is an array of ICallGroupMembershipDetails, which is an object containing the identity of an owner of a call group and the notification
256-
setting for the specified user for that call group.
252+
The group membership details for the specified user. It is an array of ICallGroupMembershipDetails, which is an object containing the identity of an owner of a
253+
call group and the notification setting for the specified user for that call group.
257254
258255
This parameter only exists if the specified user is a member of a call group. You can't create it, you can only change it.
259256
@@ -332,8 +329,8 @@ Accept wildcard characters: False
332329
333330
### -UnansweredDelay
334331
335-
The time the call will ring the user before it is forwarded to the unanswered target. The supported format is hh:mm:ss and the delay range needs to be between 10 and 60 seconds in
336-
10 seconds increments, i.e. 00:00:10, 00:00:20, 00:00:30, 00:00:40, 00:00:50 and 00:01:00. The default value is 20 seconds.
332+
The time the call will ring the user before it is forwarded to the unanswered target. The supported format is hh:mm:ss and the delay range needs to be between 10 and
333+
60 seconds in 10 seconds increments, i.e. 00:00:10, 00:00:20, 00:00:30, 00:00:40, 00:00:50 and 00:01:00. The default value is 20 seconds.
337334
338335
```yaml
339336
Type: System.String
@@ -368,8 +365,8 @@ Accept wildcard characters: False
368365
369366
The unanswered target type. Supported values are Voicemail, SingleTarget, MyDelegates and Group.
370367
371-
SingleTarget is used when forwarding the unanswered call to another user or phone number. MyDelegates is used when forwarding the unanswered call to the users's delegates.
372-
Group is used when forwarding the unanswered call to the specified user's call group.
368+
SingleTarget is used when forwarding the unanswered call to another user or phone number. MyDelegates is used when forwarding the unanswered call to the users's
369+
delegates. Group is used when forwarding the unanswered call to the specified user's call group.
373370
374371
```yaml
375372
Type: System.String
@@ -383,8 +380,7 @@ Accept wildcard characters: False
383380
```
384381
385382
### CommonParameters
386-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction,
387-
and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
383+
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).
388384
389385
## INPUTS
390386
@@ -399,12 +395,13 @@ The cmdlet is available in Teams PowerShell module 4.0.0 or later.
399395
400396
The specified user need to have the Microsoft Phone System license assigned.
401397
402-
When forwarding to MyDelegates, the specified user needs to have one or more delegates defined that are allowed to receive calls. When forwarding to Group, the specified user needs
403-
to have one or more members of the user's call group.
398+
When forwarding to MyDelegates, the specified user needs to have one or more delegates defined that are allowed to receive calls. When forwarding to Group, the
399+
specified user needs to have one or more members of the user's call group.
404400
401+
The cmdlet is validating the different settings and is always writing all the parameters in a settings group. You might see validation errors from the cmdlet due to
402+
this behavior. As an example, if you have ForwardingTargetType set to Group and you want to remove all members of the call group, you will get a validation error.
405403
406-
The cmdlet is validating the different settings and is always writing all the parameters in a settings group. You might see validation errors from the cmdlet due to this behavior.
407-
As an example, if you have ForwardingTargetType set to Group and you want to remove all members of the call group, you will get a validation error.
404+
You can specify a SIP URI without 'sip:' on input, but the output from Get-CsUserCallingSettings will show the full SIP URI.
408405
409406
You are not able to configure delegates via this cmdlet. Please use New-CsUserCallingDelegate, Set-CsUserCallingDelegate cmdlets and Remove-CsUserCallingDelegate.
410407

0 commit comments

Comments
 (0)