Get the loginId for the uid.