github-education-resources / teachers

Join the discussion in the GitHub Education Community:
https://education.github.community
192 stars 21 forks source link

batch file for creating student accounts #33

Open MaryOrazem opened 9 years ago

MaryOrazem commented 9 years ago

Hi, I'm teaching a course with 40 students and would like to save time by setting up their accounts in advance. The user name wold be thier school email and I would give them a password they would then need to change. All the repos are going under an Organization. GitHub gratefully let us have 40 of these. So my question - Is their a batch way to set up the accounts like there is for adding the repos with teachers_pet?

thanks

umasshokie commented 9 years ago

I don't think there is a way. It doesn't take long if they each make their own account though. I spent <5 minutes in class (assuming you are in a computer classroom) having everyone sign up for a GitHub account on the first day of class. They then had to write it down on a sheet of paper I handed out and turn it in at the end of class. Then I added each of them to the organization after class (takes a little more time). Although I'm curious to hear if someone has a faster way to do it.

brock commented 9 years ago

I agree with @umasshokie

Looking at the Github API, there isn't an option to create a user at all. Interesting, I'd never noticed this before. So it probably means that Github wants users to always go through the website.

https://developer.github.com/v3/users/

All of the reference to a user refers to them by their existing Github ":username"

MaryOrazem commented 9 years ago

Thanks for the quick responses, For the seated students, @umasshokie's will work fine, but 16 of the students are online, so maybe I'll just add those myself with default password that they can change latter