The general principle is broadly applicable to any kind of collection. I haven't worked with the Hogwarts library but I'd be shocked if the librarian didn't have the same kind of enchantments set up on the works in the school library. I know the same sort of magics are used for Wizengamot administration files. I don't have access to them and have to go through their people when I need access to Wizengamot files. Gid's got access to some of them through work.
Where that's not a personal estate are we talking about, in particular?