Python Forum

Full Version: New User creation in GITHUB Account using python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Team,

need help i am working on project github user create
In my Project we want automate "github access to new users in org, any help
requirement is below:-
Add user to Github process:



⁃ Login with your Github account (if you don’t have one, go to github.com, create one then let me know your username)

 ⁃

For each github username request , ensure you have a full name (first and last name) and that they are a current employee or contractor of xxx.org. If you’re unable to verify any usernames, add a comment to the ticket asking the customer for a first name, last name and confirmation that they are working for xxx.org.



⁃ Browse to https://github.com/orgs/xxx/people

For every valid username:



⁃ Click invite, search for their username and select them. If no username is found, make a note and carry on with the next username (if any.) If a username appears, select them and In the following screen set them as a collaborator (not owner.) and add them to the 'XXX-All' team only then click 'Send Invitation.'



This sends an invite to the user, which they then must accept - we aren’t able to forcibly add a user to the organisation.



Regards,
BasavP
Quote:In my Project we want automate "github access to new users in org
prolly would need selenium to automate that process.
http://selenium-python.readthedocs.io/
This sounds like homework (because of (if you don’t have one, go to github.com, create one then let me know your username)

 - sounds like teacher's requirment). Anyway, we are not doing code for other people. You need to post your code in python tags, describe the problem (incl. post full traceback in error tags if you get one).
we can't write small script to get done. search user in web github database if no user found we can provide input create user and add email.

"github invite [username]"
What about Github API?
https://developer.github.com/v3/
ok let me Try.
Thank you!