org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/memberships/{username}.state of the membership and the member's role.role for organization owners is set to maintainer. For more information about maintainer roles, see Create a team.curl --location 'https://service1.exmaple.com/orgs//teams//memberships/'{
"url": "https://api.github.com/teams/1/memberships/octocat",
"role": "maintainer",
"state": "active"
}