Skip to content

Commit ccedb61

Browse files
authored
Update Get-CsOnlineUser.md
1 parent 04bb782 commit ccedb61

File tree

1 file changed

+81
-2
lines changed

1 file changed

+81
-2
lines changed

skype/skype-ps/skype/Get-CsOnlineUser.md

Lines changed: 81 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,68 @@ Enables you to limit the returned data by filtering on specific attributes. For
209209

210210
The Filter parameter uses the same filtering syntax as the Where-Object cmdlet. For example, the following filter returns only users who have been enabled for Enterprise Voice: `-Filter 'EnterpriseVoiceEnabled -eq $True'` or ``-Filter "EnterpriseVoiceEnabled -eq `$True"``.
211211

212-
The following updates are applicable for organizations having TeamsOnly users that use Microsoft Teams PowerShell version 3.0.0 and later:
212+
**Updates in Teams PowerShell Module version 5.0.0**
213+
214+
The following updates are applicable for organizations having TeamsOnly users that use Microsoft Teams PowerShell version 5.0.0 (note that these changes are only rolled out in commercial environments at present:
215+
216+
_Performance_
217+
218+
The performance of Get-CsOnlineUser without the “-identity” parameter is improved. Here are some examples where significant improvement can be observed:
219+
220+
- Get-CsOnlineUser -Filter {AssignedPlan -like "*MCO*"}
221+
- Get-CsOnlineUser -Filter {UserPrincipalName -like "test*" -and (AssignedPlans -eq "MCOEV" -or AssignedPlans -like "MCOPSTN*")}
222+
- Get-CsOnlineUser -Filter {OnPremHostingProvider -ne $null}
223+
- Get-CsOnlineUser -Filter {WhenChanged -gt "1/25/2022 11:59:59 PM"}
224+
225+
_New Filtering Attributes_
226+
227+
These attributes are now enabled for filtering:
228+
229+
- Alias
230+
- City
231+
- CompanyName
232+
- HostingProvider
233+
- UserValidationErrors
234+
- OnPremEnterpriseVoiceEnabled
235+
- OnPremHostingProvider
236+
- OnPremLineURI
237+
- OnPremSIPEnabled
238+
- SipAddress
239+
- SoftDeletionTimestamp
240+
- State
241+
- Street
242+
- TeamsOwnersPolicy
243+
- WhenChanged
244+
- WhenCreated
245+
- FeatureTypes
246+
- PreferredDataLocation
247+
- LastName
248+
249+
_New Operators_
250+
251+
These filtering operators have been reintroduced:
252+
253+
- “-like” operator now supports use of wildcard operators in ‘contains’ and ‘ends with’ scenarios. Example:
254+
255+
```
256+
Contains Scenario: Get-CsOnlineUser -Filter "AssignedPlan -like '*MCO*'"
257+
Ends with scenario: Get-CsOnlineUser -Filter {AssignedPlan -like '*MCO'}
258+
```
259+
- “-contains” can now be used for filtering on properties that are an array of strings like FeatureTypes, ProxyAddresses and ShadowProxyAddresses. Example:
260+
```
261+
Get-CsOnlineUser -Filter {FeatureTypes -contains "PhoneSystem"}
262+
Get-CsOnlineUser -Filter {ProxyAddresses -contains "SMTP:[email protected]"}
263+
```
264+
- “-gt”(greater than), “-lt”(less than), “-le”(less than or equal to) can now be used for filtering all string properties. Example:
265+
```
266+
Get-CsOnlineUser -Filter {UserPrincipalName -gt/-le/-lt “abc”}
267+
```
268+
- “-ge”(greater than or equal to) can now also be used for filtering on policies
269+
```
270+
Get-CsOnlineUser -Filter {ExternalAccessPolicy -ge "xyz_policy"}
271+
```
272+
273+
The following updates are applicable for organizations having TeamsOnly users that use Microsoft Teams PowerShell version 3.0.0 and later (excluding updates mentioned above for Teams PowerShell Module version 5.0.0):
213274

214275
In the Teams PowerShell Module version 3.0.0 or later, filtering functionality is now limited to the following attributes (note that these changes are only rolled out in commercial environments at present and will be applicable to the lastest TPM versions in government environments starting March 31, 2023.):
215276

@@ -310,6 +371,7 @@ The following filter syntaxes have been modified in Teams PowerShell Module 3.0.
310371
- -ge: This operator is not supported with policy properties.
311372
- -like: This operator is supported only with wildcard character in the end (e.g., `"like <value>*"`).
312373

374+
313375
```yaml
314376
Type: String
315377
Parameter Sets: (All)
@@ -472,7 +534,24 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
472534

473535
### Notes
474536

475-
The following updates are applicable for organizations having TeamsOnly users that use Microsoft Teams PowerShell version 3.0.0 and later (note that these changes are only rolled out in commercial environments at present and will be applicable to the lastest TPM versions in government environments starting March 31, 2023.):
537+
**Updates in Teams PowerShell Module version 5.0.0**
538+
539+
The following updates are applicable for organizations having TeamsOnly users that use Microsoft Teams PowerShell version 5.0.0 (note that these changes are only rolled out in commercial environments at present:
540+
541+
New attributes have now been introduced in the output of Get-CsOnlineUser when not using the "-identity" parameter:
542+
543+
- CountryAbbreviation
544+
- SipProxyAddress
545+
- TeamsMediaLoggingPolicy
546+
- UserValidationErrors
547+
- WhenCreated
548+
549+
Unlicensed Users – Unlicensed user would show up in the output for 30 days post license removal
550+
Soft deleted users – These users will be displayed in the output of Get-CsOnlineUser and TAC Manage Users page by default with SoftDeletionTimestamp set to a value
551+
552+
**Updates in Teams PowerShell Module version 3.0.0 and above**
553+
554+
The following updates are applicable for organizations having TeamsOnly users that use Microsoft Teams PowerShell version 3.0.0 and later excluding updates mentioned above for Teams PowerShell Module version 5.0.0 (note that these changes are only rolled out in commercial environments at present and will be applicable to the lastest TPM versions in government environments starting March 31, 2023.):
476555

477556
*New user attributes*:
478557

0 commit comments

Comments
 (0)