a joining element and a method for attaching the joining element on a surface of a component are disclosed . the joining element comprises a sleeve - shaped accommodation part for the accommodation of an element to be attached in the interior of the accommodation part . a flange - type extension having an indentation is provided wherein said indentation can be filled with suitable means of attachment for mounting the joining element onto surface .