Within the Allgemeine-SS (general-SS), a Hauptscharführer was typically the head SS-non-commissioned officer of an SS-Sturm (company) or was a rank used by enlisted staff personnel assigned to an SS headquarters office or security agency (such as the Gestapo and Sicherheitsdienst; SD).