If that Mac has not been properly managed and is associated with an Apple ID, including iCloud and the Find My app and process, then you will need to contact the previous user and ask them to release and remove that computer from their Apple ID account.
Please see: https://support.apple.com/en-us/HT203993
Without the cooperation of the previous user, this Mac may be inaccessible and could very well become a door stop. It may require a visit to an Apple Store or Apple Authorized Service Provider along with a purchase receipt in order to be wiped and reloaded with an OS and then the software required by the office.
For an office computer, the Apple ID associated with the computer should belong to the company, never the user, to avoid exactly this scenario. The password(s) for access should remain with the IT or technical support folks.