Getting the UID of a user model I want to use the UID to get a user from a url and don't want to use the ID as it is guessable. I know I can do craft()-&gt;users-&gt;getUserByUid($uid); but after getting the uid, the uid is not on the user model which is kinda a pain.

For example what if i wanted the uid for the currently logged in user?
Currently, Craft doesn't expose the UID in any of its models.

Kind of a pain, but the only thing I can think of as as a workaround is to write a plugin that has a UserModel with the UID and mimics whatever methods from UsersService that you need.