A single word for “one who boasts about knowing or dating famous people”
Are you thinking of name-dropping (MW)?
the studied but seemingly casual mention of prominent persons as associates done to impress others
Name-dropping is the verb form, the noun is name-dropper.
If your use of "knowing" is the biblical sense of the word, there is also the term "starfucker".
The Term "Groupie" is often used in this case.
While, most commonly used in reference to a band/musical artist, it can also be used in context with any famous person or group.