So one can go to a public bldg to inspect records; if they demand ID, they just violated your privacy rights.

And if it is a security company requiring it ~ they have no immunity...feel free to sue them.
If its the police ~ feel free to file a 1983 case or a claims commission one