My wife and I share our iMac but we both have independent icloud accounts, our problem is how can we work with the same programs (Numbers, Pages...), and upload the documents in our independents clouds?
Here you go ;-)... Just use your two different accounts for iCloud services (iOS: Set it up in Settings > iCloud/Mac: System Preferences > iCloud) and then use the same Apple ID for iTunes & app purchases (iOS: Settings > iTunes & App Stores; Mac: just sign in iTunes/Mac App Store).