I'm on a campus with lots of outside racks, but also a high risk of theft. I called the facilities department manager and asked for access to the locked mechanical/boiler room at the end of my hallway, so now I park the bike there every day. The facilities people go in sometimes, but they all know it's my bike and that I have permission to keep it there. They also know that if anyone nabbed it, the manager knows every person who has a key that opens that door, so that would be the end of their employment.
When I arrive on campus at the gym to shower and change for the day, I use a Kryptonite NY u-lock on the sheltered outside rack, but that's 30 minutes or so in full view of all the students exercising. A crow bar would be noticed.
If you have strict rules about bikes in the building, you're stuck, but otherwise ask the facilities people and maybe the IT people- they often have rooms for equipment and servers that have space for a bike and limited access.