The Metropolitan Police has said the force is grateful to the Duke of York for his understanding after he was challenged by officers in the gardens of Buckingham Palace.
Prince Andrew was asked to confirm his identity after a break-in at the Palace 48 hours earlier.
In light of media reports we can confirm that the man spoken to by officers was the Duke of York. We are making this public with HRH's permission.
We are grateful to the Duke for his understanding and have apologised for any inconvenience caused.
An earlier statement had only confirmed a man was ordered to verify his identity by two officers in the palace's gardens at around 6pm on Wednesday.
A man has broken into Buckingham Palace sparking a major security alert - he was was arrested inside the Queen's home earlier this week.
Last Monday's break-in at Buckingham Palace is the latest in a series of security scares involving the Royal Family.