Organization Members
Manage organization membership and member activity.
List all organization projects with one member's access level, null where none
/organizations/{organizationId}/members/{memberId}/project-membershipsReturns a list of all projects in the organization along with the specified member's access level for each project. Each entry includes the project ID, name, and the member's role/permission level within that project (or null if they have no direct project membership). Useful for auditing a member's project access across the organization.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const org = await gc.organizations.getOrganizationBySlug({ slug: "my-org" });
const { members } = await gc.organizationMembers.listOrganizationMembers({ organizationId: org.id,});
const { memberships } = await gc.organizationMembers.listMemberProjectMemberships({ organizationId: org.id, memberId: members[0].id,});
List every app with one member's role; project roles do not grant app access
/organizations/{organizationId}/members/{memberId}/app-membershipsReturns every app across the organization's projects along with the specified member's role on each, or null where they have no binding. Since a project role no longer grants access inside an app, this is what shows which apps a member can actually work in. Each entry carries its project so the apps can be grouped under the project they belong to.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const org = await gc.organizations.getOrganizationBySlug({ slug: "my-org" });const { members } = await gc.organizationMembers.listOrganizationMembers({ organizationId: org.id });
const { memberships } = await gc.organizationMembers.listMemberAppMemberships({ organizationId: org.id, memberId: members[0].id,});
Get member activities
/organizations/{organizationId}/members/{memberId}/activitiesReturns a paginated activity feed for a specific member within an organization. Activities include actions the member has performed such as project updates, document edits, member management changes, and settings modifications. Each activity entry includes the action type, resource details, and timestamp. Supports pagination via page and pageSize query parameters.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const org = await gc.organizations.getOrganizationBySlug({ slug: "my-org" });const { members } = await gc.organizationMembers.listOrganizationMembers({ organizationId: org.id });
const { activities } = await gc.organizationMembers.listOrganizationMemberActivities({ organizationId: org.id, memberId: members[0].id,});
Get one member's profile, role, title and join date by member UUID
/organizations/{organizationId}/members/{memberId}Retrieves a single organization member by their member ID. Returns the member object including user profile (name, email, avatar), role, title, and join date. The 'memberId' param is the member UUID. Returns 404 if the member does not exist in this organization.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const org = await gc.organizations.getOrganizationBySlug({ slug: "my-org" });const { members } = await gc.organizationMembers.listOrganizationMembers({ organizationId: org.id });
const member = await gc.organizationMembers.getOrganizationMember({ organizationId: org.id, memberId: members[0].id,});
List members of an organization with their roles, paginated and searchable
/organizations/{organizationId}/membersReturns a paginated list of all members in an organization. Each member object includes the member ID, user profile (name, email, avatar), role (owner, admin, editor, viewer), title, and join date. Supports search by name or email, filtering by role, and sorting. Pagination is controlled via page and pageSize query parameters.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { id: organizationId } = await gc.organizations.getOrganizationBySlug({ slug: "my-org" });
const { members } = await gc.organizationMembers.listOrganizationMembers({ organizationId });