lib/iam/right_iam_users.rb
# Updates the name and/or the path of the specified User.
#
#  iam.update_user('kd1', :new_user_name => 'kd1', :new_path => '/kd1/') #=> true
#
Updates the name and/or the path of the specified User.
Updates the name and / or the path of the specified User .
def update_user(user_name, options={})
      request_hash = { 'UserName' => user_name}
      request_hash['NewUserName'] = options[:new_user_name] unless options[:new_user_name].right_blank?
      request_hash['NewPath']     = options[:new_path]       unless options[:new_path].right_blank?
      link = generate_request("UpdateUser", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    end
def update_user ( user_name , options = { } ) request_hash = { 'UserName' => user_name } request_hash [ 'NewUserName' ] = options [ :new_user_name ] unless options [ :new_user_name ] . right_blank? request_hash [ 'NewPath' ] = options [ :new_path ] unless options [ :new_path ] . right_blank? link = generate_request ( "UpdateUser" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) end
Updates the name and/or the path of the specified User.
Updates the name and / or the path of the specified User .
user_name
<not_specific>
options
<not_specific>