MCPcopy Index your code
hub / github.com/simstudioai/sim / getOrgMemberIds

Function getOrgMemberIds

apps/sim/lib/billing/organizations/membership.ts:74–81  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

72 * Get all member user IDs for an organization
73 */
74export async function getOrgMemberIds(organizationId: string): Promise<string[]> {
75 const members = await db
76 .select({ userId: member.userId })
77 .from(member)
78 .where(eq(member.organizationId, organizationId))
79
80 return members.map((m) => m.userId)
81}
82
83/**
84 * Block all members of an organization for billing reasons

Callers 2

blockOrgMembersFunction · 0.85
unblockOrgMembersFunction · 0.85

Calls 1

eqFunction · 0.50

Tested by

no test coverage detected