Teams Real Simple with Pictures: Managing User Feedback to Microsoft with Powershell


This blog is part of a series on Teams. For more articles, check back often

Written: 02/01/2021 | Updated: N/A

It’s a new year! A new start! And so much more to do! It’s going to be another exciting year for Microsoft Teams and whilst I intended to publish 12 things I would like to see drop in Microsoft Teams 2021 on New Years Day, I just got too damn excited about it and ended up publishing it early. Now, Uservoice is a great way to suggest and vote up on features you want to see, but what many don’t know is that it’s also a great place to check out and submit bugs with its own defined bugs section. However, there is also an alternative to uservoice which is the give feedback section within the Microsoft Teams application itself

Whether this is feature is useful or not is very much subjective and hopefully it has worked out for you or your users on some level. However, having discussed this with several admins it’s a feature that they aren’t always comfortable with. Why? There’s a few reasons. Some admins would rather users feed back directly to them so they can address or optimise this feedback to Microsoft. Others have said they have no visibility on this feedback. Others argue it dilutes the general support experience. Personally, I feel that Uservoice is the authoritative and more immersive place allowing users to think more widely of how Teams can be improved or find common bugs. So in the interests of channelling feedback to the location which will likely make the most difference admins need to know how to turn give feedback off. This is not something which can be done in the Teams Admin Centre. This is 100% Powershell.

This blog will cover

  • How to disable give feedback in Microsoft Teams desktop and web clients – New Policy
  • How to disable give feedback in Microsoft Teams desktop and web clients – Amend Global Policy
  • How to reenable give feedback in Microsoft Teams desktop and web clients

Pre-requisites

  • Teams Service Admin or Global Admin permissions to run Powershell commands
  • Teams Licence (In an Office/Microsoft 365 Subscription) the command has run correctly

HOW TO DISABLE GIVE FEEDBACK IN MICROSOFT TEAMS DESKTOP AND WEB CLIENTS – NEW POLICY

Use this method if you want to disable the give feedback feature to a specific set of users or want to move them away from the global org wide policy

1.) Search for Windows Powershell and Run as Administrator

2.) If you haven’t got Teams Powershell Module installed type

Install-Module MicrosoftTeams

If this is the first time you are installing the module you may be asked to validate it is a trusted repository

3.) Run the following command to log on to a session using administrator credentials

Connect-MicrosoftTeams -Credential $credential

4.) Run the following command to import Skype for Business cmdlets

$session = New-CsOnlineSession -Credential $credential
Import-PsSession $session

5.) As we are only applying this to a set of users, not all (some of which will stay on the global org wide default policy where feedback is on by default) we now need to create a new feedback policy before applying it. Here it is the command -userInitiatedMode within the Teams Feedback Policy which control feedback within the Teams desktop and web clients. On the other hand, -receiveSurveysMode controls whether users will be periodically asked to complete surveys within the Teams client. You have the option to enable one and disable the other. To create your new policy (remember to set your own policy name, run the command

New-CsTeamsFeedbackPolicy -identity “AllTeamsUserFeedbackOff” -userInitiatedMode disabled -receiveSurveysMode disabled

6.) We can now apply the new feedback policy to individual users via the command

Grant-CsTeamsFeedbackPolicy -Identity chrish@M365x821868.onmicrosoft.com -PolicyName “AllTeamsUserFeedbackOff”

7.) However, it may take a long time to do this for the users we want, and the Teams Feedback Policy is not currently supported via batch or via group policy assignment so if you want to apply it to many users, or all users in your organisation the easiest way would probably be via CSV. Create a CSV file called ‘feedback’ with the first column heading of UserPrincpalName as shown below and deposit this in C: either on the local or virtual machine – wherever you are holding your powershell session. This process is made significantly easier by downloading a copy of users via CSV in Azure AD (third screenshot) and cleaning it up

Once the CSV is done and in place, run the following Powershell command

Import-Csv C:\feedback.csv | ForEach-Object {
$User = Get-CsOnlineUser -Identity $_.UserPrincipalName
Grant-CsTeamsFeedbackPolicy -Identity $User.UserPrincipalName -PolicyName “AllTeamsUserFeedbackOff”
}

8.) Use the following command to check users have the feedback policy applied

Get-CsUserPolicyAssignment -Identity chrish@m365x821868.onmicrosoft.com

8.) Our job here is done. Wait a little propagation time and give feedback directly to Microsoft disappears for all users to which the policy applies

HOW TO DISABLE GIVE FEEDBACK IN MICROSOFT TEAMS DESKTOP AND WEB CLIENTS – AMEND GLOBAL

Use this method if you simply want to quickly disable the give feedback feature to all users and haven’t made any custom feedback policies up to this point

1.) Search for Windows Powershell and Run as Administrator

2.) If you haven’t got Teams Powershell Module installed type

Install-Module MicrosoftTeams

If this is the first time you are installing the module you may be asked to validate it is a trusted repository

3.) Run the following command to log on to a session using administrator credentials

Connect-MicrosoftTeams -Credential $credential

4.) Run the following command to import Skype for Business cmdlets

$session = New-CsOnlineSession -Credential $credential
Import-PsSession $session

5.) Run the command

Set-CsTeamsFeedbackPolicy -Identity Global -userInitiatedMode disabled

HOW TO RE-ENABLE GIVE FEEDBACK IN MICROSOFT TEAMS DESKTOP AND WEB CLIENTS

There are three ways to re-enable feedback in the Teams desktop and web apps

1.) Create a new policy and grant as per above with -userInitiatedMode enabled

2.) Grant the prepoplated policies UserChoice or Enabled to the user

Grant-CsTeamsFeedbackPolicy -Identity veskun@M365x821868.onmicrosoft.com -PolicyName “Enabled”

3.) Set-CsTeamsFeedbackPolicy -Identity Global -userInitiatedMode enabled

There doesn’t appear to be any Remove-CsTeamsFeedbackPolicy command or it doesn’t seem to work in a shell session at the current time

One question you may have is what is EnabledUserOverride mean in terms of Surveys? Basically this means that the user can control surveys in the settings of the Teams Client. If they are disabled, there will be no option to switch them on and it will be greyed out. Override allows the user to choose whether they want to participate – they control the setting

Hope that this one has been insightful and gives you a bit more control over your Teams Deployment

One thought on “Teams Real Simple with Pictures: Managing User Feedback to Microsoft with Powershell

Comments are closed.