
You can take the hidden office cash even with a full bag. There is no keypad on this safe, so you can make the stop without collecting a code for it.
Face the fireplace
Once upstairs in the compound office, stand facing the fireplace. Look left for the photographs and walk right up to that section of wall. Use the interaction prompt to open the panel. The amount of money inside varies between runs.
Source: Scouting the secondary targets, The office safe on a solo finale route
Read the bag meter correctly
The office cash adds to your take separately. An empty bag will still look empty afterwards. If a painting spawned in the same room, cutting that down does use bag space. Once you have the cash, the primary target is still waiting downstairs.
Source: Scouting the secondary targets, The office safe on a solo finale route
Sources
Interfaces and rules can change. Check the official pages above for current requirements.