I'm not seeing any matches either - just one on Dublin in exactly 1906, a John Beresford Grey to Adelaide Elizabeth Boyd on the 20th November 1906, no others in any of Dublin City or County registration districts, the others that year are all in other parts of Ireland - John Gray to Frances Wilson 20th April in Newtownards district, and a John Gray to a Bridget Moran 20th April 1906 in Mohill district.
Widening the search to 1906 +-5 years gives just over 60 possible John Grey/Gray marriages, but none that I can find where the bride's surname is either Lynch or [O']Connor.
I've seen quite a few of these Irish Marriage References on Scottish birth cert which do not turn out to be correct - maybe they did not remember the date and/or location correctly, or the couple never actually married, or if they did maybe the marriage was not registered for some reason ?
Have you found the family on the 1911 Scottish census to check places of birth, or death certs for John and Mary Jane ?
Scottish death certs include names of parents (assuming the informant had this information) which could help you trace further...