How do I share files with users based on Apple ID?
Set up iCloud on both computers, that's what its intended to do. 

Go to 

System Preferences... iCloud  

Alternatively, use either Dropbox or Google Drive. Personally I prefer Dropbox, but they're all pretty much of a muchness.