userId bit has been there from the start in Universal Analytics. Its called custom dimensions and can be used to send any property about the user into the GA and then link it to a User or a specific Visit.
https://developers.google.com/analytics/devguides/collection...