diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 46e688e47f057b687b101a1ada851b38f76dc752..9cd86d0b8991d35f07e69894a50bd9c8d1ee25b8 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -53,7 +53,7 @@ module Gitlab
       # Example Request:
       #   PUT /projects/:id/add_users
       put ":id/add_users" do
-        user_project.add_users_ids_to_team(params[:user_ids], params[:project_access])
+        user_project.add_users_ids_to_team(params[:user_ids].values, params[:project_access])
       end
 
       # Get a project repository branches