Path: blob/master/GitHub/GitHub_Get_team_membership_for_a_user.ipynb
2973 views
Kernel: Python 3
GitHub - Get team membership for a user
Tags: #github #teams #members #rest #api #python #snippet
Author: Florent Ravenel
Last update: 2023-04-26 (Created: 2023-04-18)
Description: This notebook get team membership for a user. It will return a dictionary with the state, role and url of the membership.
Input
Import libraries
In [ ]:
Setup Variables
token
: GitHub personal access tokenorg_id
: ID of the organizationteam_id
: ID of the teamusername
: GitHub username
In [ ]:
Model
Get team membership for a user
In [ ]:
Output
Display result
In [ ]: