lib/conjur/user.rb in conjur-api-5.0.0 vs lib/conjur/user.rb in conjur-api-5.1.0
- old
+ new
@@ -26,9 +26,15 @@
# Get the user's uidnumber, which can be used by LDAP and SSH login, among other things.
#
# @return [Fixnum] the uidnumber
# @raise [RestClient::Forbidden] if you don't have permission to `show` the user.
def uidnumber
- annotation_value 'conjur/uidnumber'
+ parser_for(:user_uidnumber, user_attributes)
+ end
+
+ private
+
+ def user_attributes
+ @user_attributes ||= url_for(:user_attributes, credentials, self, id)
end
end
end