Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 2

Resource not accessible by integratio - when requesting team memberships

Solved! Go to Solution.

Hi, I try to check if a user belongs to a team during a CI workflow [GitHub Action].

 

I use the following request using the GITHUB_TOKEN to check if the user belongs to a team

GET /orgs/:org/teams/:team_slug/memberships/:username

documented https://developer.github.com/v3/teams/members/#get-team-membership

 

When I start using the request, the team visibility was set to 'Secret', and thought this was the source of my troubles. But since I set the team visibility to 'Visible', but I still got a 403 return with the message "Resource not accessible by integration".

 

I wonder if it's just a synchronization issue [I've waited ~15 minutes] or if that resource is simply not accessible at all during integration and I should try using a personal token instead of the integration one?

 

thanks for your help

nicolas

 

1 Reply
Highlighted
Solution
Copilot Lvl 3
Message 2 of 2

Re: Resource not accessible by integratio - when requesting team memberships

from what I see a Personal Access Token is required in order to access team membership