Dame Sarah Mullally made the oath of allegiance in a ceremony which dates back to the 16th century.