I want to give team in GitHub Admin, Write, or Read access to any Team

Skip to first unread message

Luc Ibata

Apr 17, 2017, 3:53:04 PM4/17/17
to go-github

I am not talking about: "You can give a team Admin, Write, or Read access to any repository." I want to give team Admin, Write, or Read access to any Team. 

So I want to do the following: I have 3 teams in our organization: Team1, Team1-1, Team1-2 Grant permissions to Team1 to Edit Permissions of Team1-1 Grant permissions to Team1-1 to Edit Permissions of Team1-2

It does not seem like github has such permissiosn on the team level. is there a way? even api solution or alternatives?

Thanks Luc

Will Norris

Apr 28, 2017, 4:34:41 PM4/28/17
to Luc Ibata, go-github
no, GitHub doesn't have any support for that.  You could certainly do it via the API if you had a service account that is an owner of the org, and it enforced it's own access control by looking at team membership.

You received this message because you are subscribed to the Google Groups "go-github" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-github+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luc Ibata

Apr 28, 2017, 5:24:13 PM4/28/17
to Will Norris, go-github
Thank you.
You are probably right because I was advised similar solution.
Now I need to understand how to implement a se vide account with its own access control. 
Could you guide me on the latter (access control) ?

Luc iBata

Will Norris

Apr 28, 2017, 5:58:15 PM4/28/17
to Luc Ibata, go-github
It really depends on that kind of app you're building.  But the basics would be:
 - authenticate the user making the request
 - use the relevant org teams API call to confirm that user is a member of Team1
 - make API call to modify Team1-1, Team1-2, etc using the service account which has access to manipulate those teams.

go-github has all the pieces you would need to make the API calls, but you'd need to build a UI for it all.
Reply all
Reply to author
0 new messages