I have found that you can just post the info with your admin token:
- https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/users.md - http://doc.gitlab.com/ce/api/README.html headers = { 'PRIVATE-TOKEN' : 'insert-token-here' } data = { 'email': email, 'extern_uid': dn, "provider": "ldapmain", "name": name, "username": username, 'password': '1234567890', "confirm": False, } requests.post('https://gitlab.example.com/api/v3/users/', data, headers= headers) I get the email, dn, name, username from ldap by using python-ldap; I use a filter to only match engineers. The password is required, but you can use a dummy value that matches the security parameters (min 8 characters ...etc) -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/8ac1302a-09cc-47ff-b68a-ab360e76ebfb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.