I've got a gitlab running on server. For now, I've also got just a list of users and emails needed to be add into gitlab. Is there a way to do this automatically? (i.e. by script/service)
curl --header "PRIVATE-TOKEN: QVy1PB7sTxfy4pqfZM1U" --data-urlencode "firstname.lastname@example.org&password=defaultpassword&username=jdoe&name=Jon Doe" "http://example.com/api/v3/users"
Curl is the path of least resistance with your preferred shell language (in my case Bash). If you don't want to use curl to script creating your users there are numerous libraries for different languages to interact with the GitLab API. Take your pick. Popular libraries include:
I'm sure there are many more API libs for other languages just google for your preferred language and include GitLab API as part of the query.