diff --git a/source/integrations-guide/built-in-slash-commands.rst b/source/integrations-guide/built-in-slash-commands.rst index 7f87e7fe45a..c801dda0b09 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 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:: + + 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``. + +.. 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. + More useful slash commands ~~~~~~~~~~~~~~~~~~~~~~~~~~