{{#usermenu}}
diff --git a/theme/classic/templates/core/user_menu.mustache b/theme/classic/templates/core/user_menu.mustache
new file mode 100644
index 00000000000..1aa9c846496
--- /dev/null
+++ b/theme/classic/templates/core/user_menu.mustache
@@ -0,0 +1,105 @@
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see .
+}}
+{{!
+ @template core/user_menu
+
+ Action link template.
+
+ Context variables required for this template:
+ * unauthenticateduseruser - (Optional) Items to be displayed if an an unautheticated user is accessing the site
+ * content - The content to be displayed in the header.
+ * url - The login url
+ * items - Array of user menu items used in user_action_menu_items. Required if the above not provided.
+ * metadata - Array of additional metadata to be displayed in the dropdown button.
+ * avatardata - Array of avatars to be displayed. Usually only the current user's avatar. If viewing as another user,
+ includes that user's avatar.
+ * userfullname - The name of the logged in user
+ * submenus - Array of submenus within the user menu.
+ * id - The id of the submenu.
+ * title - The title of the submenu.
+ * items - Array of the submenu items used in core/user_action_menu_submenu_items.
+
+ Example context (json):
+ {
+ "unauthenticateduser": {
+ "content": "You are not logged in",
+ "url": "https://yourmoodlesite/login/index.php"
+ },
+ "items": [],
+ "metadata": [],
+ "avatardata": [],
+ "userfullname": "Admin User",
+ "submenus": [
+ {
+ "id": "86cebd87",
+ "title": "Submenu title",
+ "items": []
+ }
+ ]
+ }
+}}
+