List Organization Members

Lists all members of an organization

Usage #

// Import the typed helper
import { listOrgMembers } from "@hotglue/sdk/github";
const result = await client.execute({
...listOrgMembers({
org: string,
filter: string,
role: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListOrgMembersOutput
const result = await client.execute({
integration: "github",
tool: "list_org_members",
userId: "user_123",
input: {
org: string,
filter: string,
role: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the List Organization Members tool");

Required Permissions #

read:org

Input Schema #

org string required

Organization name

filter string

Filter members

default: all values: 2fa_disabled, all
role string

Filter by role

default: all values: all, admin, member
per_page int
default: 30
page int
default: 1

This tool calls: #

GET https://api.github.com/orgs/{org}/members