Pelosi doesn’t run the Capitol, the Capitol Police, or anything else not directly related to the House Chambers.
She is the ultimate authority at the Capitol like the president, being third in line for the presidency.