def METHOD_NAME(self):
    if self.request.user is not None:
        return {"login": self.request.user.username,
                "role": self.request.user.settings_role.name,
                "role_id": self.request.user.settings_role.id,
                "mymaps_role": getattr(
                    self.request.user,
                    'mymaps_role', self.request.user.settings_role.id),
                "mail": getattr(
                    self.request.user, 'mail',
                    self.request.user.email),
                "sn": getattr(
                    self.request.user, 'sn',
                    self.request.user.username),
                "typeUtilisateur":  getattr(
                    self.request.user, 'typeUtilisateur',
                    self.request.user.typeUtilisateur),
                "is_admin": getattr(self.request.user, 'is_mymaps_admin', False)}
    return {}