It is easily possible to partition the drive and perform two (or even more) separate installations of macOS to keep home and work use separate.
No license violations whatsoever are involved in this act.
However, this approach is generally taken, only when you wish to run two or more different versions of macOS on a single machine at the same time. (For e.g. to run or develop an app on different major versions of macOS).
In your scenario, a highly recommended approach would be to create two separate user accounts instead of performing two different installations of the exact same operating system.
The following is a discussion listing drawbacks of the original approach (which could be entirely avoided by taking the aforementioned recommended approach):
Wasted disk space: Partitioning and installing two copies of the same operating system will unnecessarily end up eating precious hard disk space. Almost all the operating system and app installation data would be duplicated and twice the amount of storage will be used.
Management cost: You will have to separately update and manage two copies of the same operating system and installed apps. This is a repetitive and time consuming process.
Context switching: To switch context between work and home profile will require you to perform a full restart. You'll have to close the open apps and files in one profile even if you want to switch to the other profile momentarily for a small task. With 2 user accounts, the context switch is very easy, quick and won't require you to quit any running apps or close any files.
3rd party software license: Some 3rd party software license may not allow such multi-user use and may require purchasing a separate license. While in the recommended case, only a single copy of the app can be installed and shared between the two accounts. (this can again vary from app to app depending on how it is licensed, but you'll be better off in most cases.)
Difficulty in sharing data: It may be difficult to share user data (if required) across profiles, especially if you opt to encrypt the contents of drive. However with the recommended approach, you can have a shared folder and seamlessly share data between the two accounts.
Limit of scalability: If a similar need for further segregation arise in future, the process will be really cumbersome involving taking backups, creating multiple partitions, installing more copies of the OS and apps and restoring data, which could soon go out of hand. On the other hand, with the recommended approach, you can simply add/delete a new user account within a few seconds.
All the above hassles can be avoided simply by creating two separate user accounts one each for work and home use. The data is kept segregated along with any OS and app level configurations. Any app will need to be installed only once and will be automatically available in other user account(s) (any app specific data and configuration will be kept segregated). You will also have the option of keeping an app private to a user by installing in
~/Applications directory instead of
You can choose to make all the user accounts as Administrators and they will have access to all the system level settings. Each account can even be configured with a separate Apple ID. Each account can in effect act as a standalone macOS installation, remaining ignorant of the existence of the other user.
This setup can accomplish your desired goal in a highly manageable and scalable manner.
If you have other concerns and priorities where the aforementioned limitations doesn't apply, it is perfectly fine and easy to partition your hard drive into 2 (or more) partitions and have more than one simultaneous installations of macOS.