From 9b0c077223b237f4afdf1b2464c91c8e5e29f08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Vay=C3=A1?= Date: Mon, 20 Apr 2026 12:59:11 +0200 Subject: [PATCH 1/2] docs: add /mobile-logs slash command Document the new /mobile-logs command introduced in mattermost/mattermost#35658, which toggles the attach_app_logs preference to enable attaching mobile app logs as a file in the Mattermost mobile client (v2.38+) for debugging. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../built-in-slash-commands.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/integrations-guide/built-in-slash-commands.rst b/source/integrations-guide/built-in-slash-commands.rst index 7f87e7fe45a..a97faec7581 100644 --- a/source/integrations-guide/built-in-slash-commands.rst +++ b/source/integrations-guide/built-in-slash-commands.rst @@ -56,6 +56,24 @@ Manage channels - Edit the channel header using ``/header {text}`` or the channel purpose using ``/purpose {text}``. - Rename a channel using ``/rename {text}``. +Manage mobile app log attachments +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Use ``/mobile-logs`` to enable an attachment option in the Mattermost mobile client that lets users attach their mobile app logs as a file to the message being sent. This helps administrators and support engineers debug mobile-specific issues by providing device-side context that isn't available from server logs alone. The command updates the ``attach_app_logs`` advanced preference and always responds with an ephemeral message visible only to the invoking user. + +.. note:: + + This command requires Mattermost mobile app v2.38 or later. On earlier versions the preference can still be set, but the attachment option won't appear in the mobile client. + +- Enable log attachment for yourself using ``/mobile-logs on``. +- Disable log attachment for yourself using ``/mobile-logs off``. +- Check your current setting using ``/mobile-logs status``. +- System admins can manage the setting for another user by appending a username, such as ``/mobile-logs on @username``, ``/mobile-logs off @username``, or ``/mobile-logs status @username``. + +.. note:: + + Non-admin users can only manage their own preference. Attempts to target another account return a neutral *Unable to change mobile log settings for that user* message to avoid username enumeration. Preference changes made through this command are recorded in the audit log. + More useful slash commands ~~~~~~~~~~~~~~~~~~~~~~~~~~ From 1bb1663643071f2f0cbaa48cd97a7cba706b30a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Vay=C3=A1?= Date: Mon, 20 Apr 2026 13:44:59 +0200 Subject: [PATCH 2/2] docs: refine /mobile-logs admonition and wording - Elevate security/audit note to .. important:: - Use bold instead of italics for the error message - Clarify the attachment applies to any message the user sends Co-Authored-By: Claude Opus 4.7 (1M context) --- source/integrations-guide/built-in-slash-commands.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/integrations-guide/built-in-slash-commands.rst b/source/integrations-guide/built-in-slash-commands.rst index a97faec7581..c801dda0b09 100644 --- a/source/integrations-guide/built-in-slash-commands.rst +++ b/source/integrations-guide/built-in-slash-commands.rst @@ -59,7 +59,7 @@ Manage channels Manage mobile app log attachments ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Use ``/mobile-logs`` to enable an attachment option in the Mattermost mobile client that lets users attach their mobile app logs as a file to the message being sent. This helps administrators and support engineers debug mobile-specific issues by providing device-side context that isn't available from server logs alone. The command updates the ``attach_app_logs`` advanced preference and always responds with an ephemeral message visible only to the invoking user. +Use ``/mobile-logs`` to enable an attachment option in the Mattermost mobile client that lets users attach their mobile app logs as a file to any message they send. This helps administrators and support engineers debug mobile-specific issues by providing device-side context that isn't available from server logs alone. The command updates the ``attach_app_logs`` advanced preference and always responds with an ephemeral message visible only to the invoking user. .. note:: @@ -70,9 +70,9 @@ Use ``/mobile-logs`` to enable an attachment option in the Mattermost mobile cli - Check your current setting using ``/mobile-logs status``. - System admins can manage the setting for another user by appending a username, such as ``/mobile-logs on @username``, ``/mobile-logs off @username``, or ``/mobile-logs status @username``. -.. note:: +.. important:: - Non-admin users can only manage their own preference. Attempts to target another account return a neutral *Unable to change mobile log settings for that user* message to avoid username enumeration. Preference changes made through this command are recorded in the audit log. + Non-admin users can only manage their own preference. Attempts to target another account return a neutral **Unable to change mobile log settings for that user** message to avoid username enumeration. Preference changes made through this command are recorded in the audit log. More useful slash commands ~~~~~~~~~~~~~~~~~~~~~~~~~~