Creating an organization using GitHub Apps


#1

We are trying to create an organization using GitHub API but currently it looks like we need full admin access to create a org. is there way to create organization using GitHub apps instead of providing full admin access.

I am referring to below developer guides but it’s not clear. Is there some kind of document that talks about how we could create an organization using Apps or some other method without providing full add access to site?

https://developer.github.com/apps/
https://developer.github.com/enterprise/2.10/v3/apps/

Thanks


#2

We are trying to create an organization using GitHub API but currently it looks like we need full admin access to create a org. is there way to create organization using GitHub apps instead of providing full admin access.

Hi @ethiraj. It’s not possible to create organization or user accounts via the API for github.com. Can you clarify where exactly in the API documentation you see an API endpoint for creating organizations on github.com?

And can you clearly explain why you need to create organizations via the API on github.com? What is your use-case for this? Or are you trying to create organizations in a GHE installation?


#4

Hi @izuzak, Thanks for the reply and sorry for the confusion, this is for GHE not for github.com. we have special use case where we need to create Org using API.

Thanks.


#5

Thanks for clarifying, @ethiraj. That endpoint for creating organizations in GHE hasn’t been enabled for GitHub Apps yet, so there’s no way to do that currently. Also, GitHub Apps haven’t shipped completely for GHE. That will probably happen in the future, but I can’t say when.


#6

Thanks for the quick reply @izuzak