To see your library and its contents on a different computer, you must be signed in with the same Apple ID and password. Learn how to use Home Sharing to share music from your iTunes Library to your iPhone, iPad, or iPod touch, another Mac or PC, or your Apple TV. Apple Music content can’t be shared using Home Sharing.
Can you transfer iTunes music from one account to another?
Apple officially doesn’t allow you to transfer music between two iOS or Mac devices in different Apple accounts, or move songs from one Apple ID to another on one device. So if you want to transfer songs between two different IDs in a simple way, you may need a third-party app.