Summary
Issue with System console controls over Bots Accounts
Steps to reproduce
Have installed MM server on your own server
chat Version: 5.20.1
Database Schema Version: 5.20.0
Database: postgres
Go to the documentation here
https://docs.mattermost.com/developer/bot-accounts.html#configuration-settings
Go to
System Console > Integrations > Bot Accounts
There are no Bot Accounts option to choose(
Expected behavior
I should be able to choose Bot Accounts
I also tried to edit config.json
and enable there option that relative to bot account - no luck.
amy.blais
(Amy Blais)
March 17, 2020, 4:54pm
3
What happens if you try to edit it via config.json?
after enabling it there and restarting server - nothing changes
i log out from MM and log in again, but no changes in system console.
amy.blais
(Amy Blais)
March 17, 2020, 8:44pm
5
Would you be able to help share more details about all your config settings related to Integrations https://docs.mattermost.com/administration/config-settings.html#integrations ?
Hello, @taras.budzyn
From System Console > Bot Management , can you confirm that you have set the Enable Bot Account Creation to true
?
Once that is done, ensure that you have the System Administrator permission, navigate to Integrations > Bot Accounts and ensure that you can click the Add Bot Account :
Else, can you run the SQL statement on your database so I can confirm if there were any explicit changes to the Permissions of system_admin
. For example:
mysql> SELECT * FROM Roles WHERE Name = "system_admin";
+----------------------------+--------------+----------------------------------------+-----------------------------------------------+---------------+---------------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------+---------+
| Id | Name | DisplayName | Description | CreateAt | UpdateAt | DeleteAt | Permissions | SchemeManaged | BuiltIn |
+----------------------------+--------------+----------------------------------------+-----------------------------------------------+---------------+---------------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------+---------+
| 5d61r38edjnj9gss3gsjt3bo1a | system_admin | authentication.roles.global_admin.name | authentication.roles.global_admin.description | 1583893279048 | 1583893279176 | 0 | assign_system_admin_role use_slash_commands view_team edit_others_posts manage_public_channel_members list_team_channels create_team create_user_access_token delete_others_posts delete_others_emojis create_post read_channel create_post_public manage_team_roles import_team edit_post view_members delete_post demote_to_guest remove_user_from_team delete_emojis manage_public_channel_properties manage_bots revoke_user_access_token manage_slash_commands join_public_channels read_bots create_private_channel manage_roles invite_user manage_outgoing_webhooks manage_others_bots manage_channel_roles join_private_teams list_users_without_team read_user_access_token remove_others_reactions manage_incoming_webhooks manage_jobs add_reaction manage_others_incoming_webhooks manage_private_channel_properties edit_other_users delete_private_channel create_bot upload_file list_private_teams manage_others_outgoing_webhooks invite_guest remove_reaction manage_system read_public_channel delete_public_channel create_emojis manage_private_channel_members manage_others_slash_commands get_public_link create_post_ephemeral read_others_bots promote_guest manage_system_wide_oauth add_user_to_team manage_oauth create_public_channel manage_team | 1 | 1 |
+----------------------------+--------------+----------------------------------------+-----------------------------------------------+---------------+---------------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------+---------+
1 row in set (0.00 sec)
ahmaddanial:
Bot Management
I don’t have menu option Bot Management that it’s the issue that I describe.
"EnableOAuthServiceProvider": false,
"EnableIncomingWebhooks": true,
"EnableOutgoingWebhooks": true,
"EnableCommands": true,
"EnableOnlyAdminIntegrations": true,
"EnablePostUsernameOverride": true,
"EnablePostIconOverride": true,
"EnableLinkPreviews": false,
"EnableTesting": false,
"EnableDeveloper": false,
"DisableBotsWhenOwnerIsDeactivated": true,
"EnableBotAccountCreation": true,
Ok, seems after latest update to 5.21 and clean setup - bot feature is working now.
Sorry to bother all.
3 Likes