Add bulk of users to gitlab


I’m trying to add a bulk of users to gitlab. Now I have found the following link link it talks about the GitLab API and links to the documentation of it. There its talking about POST user but not how to use it. Can some one help me? I want to add users with a simple CSV file. using a bash script

Found it!

newuser=User.create(:username => ‘name’, :password => ‘12345678’, :password_confirmation => ‘12345678’, :email =>‘email’, :name => ‘name’)
newuser.reset_password = true
newuser.projects_limit = 5!

Is there a shell script that can achieve this which creating bulk users? Can anyone share? Thanks.