From f449583071fc507937e1d4289618098d3f5d1e7f Mon Sep 17 00:00:00 2001 From: Prasanna Patil Date: Wed, 5 Feb 2025 14:37:24 +0530 Subject: [PATCH 1/4] Update Get-CsOnlineUser.md Removing deprecated parameters. --- teams/teams-ps/teams/Get-CsOnlineUser.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/teams/teams-ps/teams/Get-CsOnlineUser.md b/teams/teams-ps/teams/Get-CsOnlineUser.md index b04d3f9919..e2b31d72c2 100644 --- a/teams/teams-ps/teams/Get-CsOnlineUser.md +++ b/teams/teams-ps/teams/Get-CsOnlineUser.md @@ -25,7 +25,6 @@ Get-CsOnlineUser [[-Identity] ] [-SkipUserPolicies] [-SoftDeletedUser] [-Sort] - [-UsePreferredDC] [] ``` @@ -190,7 +189,6 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` - ### -ResultSize **Note**: Starting with Teams PowerShell Modules version 4.0 and later, "-ResultSize" type has been changed to uint32. @@ -267,22 +265,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -UsePreferredDC - -Reserved for Microsoft internal use. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: False -Accept pipeline input: False -Accept wildcard characters: False -``` - ### CommonParameters 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). From e3f549b1abab629e23b95e51766f0656a2607ff2 Mon Sep 17 00:00:00 2001 From: Prasanna Patil Date: Tue, 18 Feb 2025 13:05:40 +0530 Subject: [PATCH 2/4] Add Properties parameter to Get-CsOnlineUser cmdlet --- teams/teams-ps/teams/Get-CsOnlineUser.md | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/teams/teams-ps/teams/Get-CsOnlineUser.md b/teams/teams-ps/teams/Get-CsOnlineUser.md index e2b31d72c2..22b9907198 100644 --- a/teams/teams-ps/teams/Get-CsOnlineUser.md +++ b/teams/teams-ps/teams/Get-CsOnlineUser.md @@ -189,6 +189,28 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` + +### -Properties + +Allows you to specify the properties you want to include in the output. Provide the properties as a comma-separated list. Note that the following properties will always be present in the output: Identity, UserPrincipalName, Alias, AccountEnabled, DisplayName. + +Examples: +- Get-CsOnlineUser -Properties DisplayName, UserPrincipalName, FeatureTypes +- Get-CsOnlineUser -Properties DisplayName, Alias, LineURI + +```yaml +Type: String +Parameter Sets: (All) +Aliases: +applicable: Microsoft Teams + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResultSize **Note**: Starting with Teams PowerShell Modules version 4.0 and later, "-ResultSize" type has been changed to uint32. @@ -297,6 +319,14 @@ A recent fix has addressed an issue where some Guest users were being omitted fr - Conferencing_RequiresCommunicationCredits: Allows pay-per minute Audio Conferencing without monthly licenses. - CommunicationCredits: Enables users to pay Teams calling and conferencing through the credits. +**Updates in Teams PowerShell Module version 6.9.0 and later**: + +Adds new attribute in the output of Get-CsOnlineUser cmdlet in commercial environments. + - TelephoneNumbers: A new list of complex object that includes telephone number and its corresponding assignment category. The assignment category can include values such as 'Primary', 'Private', and 'Alternate'. + +Adds new parameter to the Get-CsOnlineUser cmdlet in all clouds: + - Properties: Allows you to specify the properties you want to include in the output. Provide the properties as a comma-separated list. Note that the following properties will always be present in the output: Identity, UserPrincipalName, Alias, AccountEnabled, DisplayName. + **Updates in Teams PowerShell Module version 6.8.0 and later**: New policies - TeamsBYODAndDesksPolicy, TeamsAIPolicy, TeamsWorkLocationDetectionPolicy, TeamsMediaConnectivityPolicy, TeamsMeetingTemplatePermissionPolicy, TeamsVirtualAppointmentsPolicy and TeamsWorkLoadPolicy will be visible in the Get-CsOnlineUser cmdlet output. From 358a0f0bbff860aac073e10bfb0dfbed2316fe35 Mon Sep 17 00:00:00 2001 From: Prasanna Patil Date: Tue, 18 Feb 2025 13:06:45 +0530 Subject: [PATCH 3/4] Add Properties parameter to Get-CsOnlineUser cmdlet --- teams/teams-ps/teams/Get-CsOnlineUser.md | 1 + 1 file changed, 1 insertion(+) diff --git a/teams/teams-ps/teams/Get-CsOnlineUser.md b/teams/teams-ps/teams/Get-CsOnlineUser.md index 22b9907198..2c486fa628 100644 --- a/teams/teams-ps/teams/Get-CsOnlineUser.md +++ b/teams/teams-ps/teams/Get-CsOnlineUser.md @@ -21,6 +21,7 @@ Returns information about users who have accounts homed on Microsoft Teams or Sk Get-CsOnlineUser [[-Identity] ] [-AccountType ] [-Filter ] + [-Properties ] [-ResultSize ] [-SkipUserPolicies] [-SoftDeletedUser] From 4cf6c9b18ec8536f256c8360ad80eb5ab2f220ff Mon Sep 17 00:00:00 2001 From: Prasanna Patil Date: Mon, 24 Feb 2025 23:36:04 +0530 Subject: [PATCH 4/4] Update to the description --- teams/teams-ps/teams/Get-CsOnlineUser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teams/teams-ps/teams/Get-CsOnlineUser.md b/teams/teams-ps/teams/Get-CsOnlineUser.md index 2c486fa628..b779c02bdd 100644 --- a/teams/teams-ps/teams/Get-CsOnlineUser.md +++ b/teams/teams-ps/teams/Get-CsOnlineUser.md @@ -193,7 +193,7 @@ Accept wildcard characters: False ### -Properties -Allows you to specify the properties you want to include in the output. Provide the properties as a comma-separated list. Note that the following properties will always be present in the output: Identity, UserPrincipalName, Alias, AccountEnabled, DisplayName. +Allows you to specify the properties you want to include in the output. Provide the properties as a comma-separated list. Identity, UserPrincipalName, Alias, AccountEnabled and DisplayName attributes will always be present in the output. Please note that only attributes available in the output of the Get-CsOnlineUser cmdlet can be selected. For a complete list of available attributes, refer to the response of the Get-CsOnlineUser cmdlet. Examples: - Get-CsOnlineUser -Properties DisplayName, UserPrincipalName, FeatureTypes