Why do I see the error ‘The bot was blocked by a permission policy’ when trying to send ChatOps messages in Teams?
Description of issue
If you see the message “The bot was blocked by a permission policy” in the Push admin console when trying to send ChatOps messages in Microsoft Teams, you will need to update your third-party apps policy.
If you block third-party apps in Teams, you may encounter this issue, even if you successfully completed the Teams integration with Push.
Resolution
Option 1
Update your Teams permissions to allow Push as a trusted third-party app.
1. Go to admin.teams.microsoft.com/policies/app-permission
a. If you see this message, skip to Option 2 below. Otherwise, proceed to step 2 in this section.
![Microsoft Manage app assignments message - KB 10079](https://images.ctfassets.net/y1cdw1ablpvd/5GZDJ75n34g3pzNdr4mmkI/71f94198eb510851c4217d4cc660a3b4/msft_manage_apps_msg_teams_20240717.png)
2. Select the appropriate policy.
3. Under Third-party apps, search for and add Push Security as a trusted app.
![Microsoft Teams - add third-party apps - KB 10079](https://images.ctfassets.net/y1cdw1ablpvd/6HVfhD0K5NyDUE0NtETb3e/3100772280d12b34b9c3a715c493bfe4/msft_manage_thirdparty_apps_push_20240717.png)
It may take a few minutes for the new permissions to take effect. You can then retry sending ChatOps messages.
Option 2
Update your Teams permissions to allow Push as a trusted third-party app.
1. Go to admin.teams.microsoft.com/policies/manage-apps
2. Search for Push Security and then select the Push app.
![Add Push app in Teams - KB 10079](https://images.ctfassets.net/y1cdw1ablpvd/4uK85V0J3zPlGkXmTOqQfj/e92800870ac76c7be33dce0c403a3c19/push_app_teams_config_20240715.png)
3. Select Users and groups, then Edit availability.
![Teams app set availability screenshot - KB 10079](https://images.ctfassets.net/y1cdw1ablpvd/5rXUpSHtx47JwSyVs9PmM8/e1caaf0003ae65dc4a872a0ccbf753c6/teams_config_push_app_users_groups_20240715.png)
4. Then select Everyone from the Availability slideout.
![Teams Push app config - setting availability to Everyone - KB 10079](https://images.ctfassets.net/y1cdw1ablpvd/25S8yAiDDaW6eM8VUThBVj/a914045314a680a65314ae709fa178b6/teams_push_app_avail_everyone_20240715.png)
It may take a few minutes for the new permissions to take effect. You can then retry sending ChatOps messages.