when we use has had together in english
So don't worry so much about how to use  had had  as a unit of grammar, they will come together naturally when you want to express the verb ' to have ' in the past perfect. Let's consider a different verb for a moment like  to want .