Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of getting team member #2493

Merged
merged 3 commits into from
Apr 26, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pages/apis/graphql/cookbooks/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,34 @@ query getPipelinesByTeam {

If you have more than 100 teams or more than 100 pipelines per team, use the pagination information in `pageInfo` to get the next results page.

## Get members from a specific team

This query will display members of a team with their roles.
gilesgas marked this conversation as resolved.
Show resolved Hide resolved

```graphql
query GetTeamMember {
organization(slug:"organization-slug") {
teams(first:1, search:"team-slug") {
edges {
node {
members(first:200) {
edges {
node {
role
user {
name
email
}
}
}
}
}
}
}
}
}
```

## Set teams' pipeline edit access to READ_ONLY or BUILD_AND_READ

Remove edit access from existing teams. This is helpful when you want to centralize pipeline edit permissions to a single system user, controlled by an organization admin.
Expand Down