> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# Organization

GraphQL object

Reference: https://docs.credal.com/api-reference/types/objects/organization

## Fields

- `id`
- `dateCreated`
- `owner`
- `actorPermissions`
- `currentAllowedActions` — The actions the current user may take in this organization. The owner may take every action; other members take the actions of their role or of the organization's default member role if they have none.
- `defaultMemberRole` — The default role assigned to organization members with no existing role assignment.
- `remediation` — Set when the organization is in remediation (e.g. unpaid or out of contract). Null when the organization is in good standing.
- `auditLogEventsConnection` — Pages through the organization's audit logs, newest first. Requires the AUDIT_LOG_ADMIN role action.
- `agentsConnection` — The organization's agents, newest first. Readable by any member with an agent role action. Pagination is not implemented yet: every agent is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false. The request shape and connection are in place so that callers do not have to change once real pagination lands.
- `groupsConnection` — The organization's groups, newest first. Readable by any member. Pagination is not implemented yet: every group is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false.
- `inputServersConnection` — The organization's input servers, newest first. Readable by any member. Pagination is not implemented yet: every input server is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false. The request shape and connection are in place so that callers do not have to change once real pagination lands.
- `integrationsConnection` — The organization's integrations, newest first. Readable by any member. Pagination is not implemented yet: every integration is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false. The request shape and connection are in place so that callers do not have to change once real pagination lands.
- `outputServersConnection` — The organization's output servers, newest first. Readable by any member. Pagination is not implemented yet: every output server is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false. The request shape and connection are in place so that callers do not have to change once real pagination lands.
- `membershipsConnection` — The organization's active memberships, newest first. Readable by any member. Invited, deactivated and removed members are left out. Pagination is not implemented yet: every membership is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false.
- `rolesConnection` — All roles available in the organization, including unassigned system and custom roles. System roles come first, then custom roles, newest first within each group. Readable by any member. Pagination is not implemented yet: every role is returned in a single page, so `first` and `after` are ignored and `hasNextPage` is always false.

## Definition

```graphql
type Organization {
  id: String!
  dateCreated: DateTime!
  owner: UserOrError!
  actorPermissions: ActorPermissions!
  currentAllowedActions: [RoleAction!]!
  defaultMemberRole: RoleOrError!
  remediation: Remediation
  auditLogEventsConnection(request: PageRequest): OrganizationAuditLogs!
  agentsConnection(request: PageRequest): AgentsConnection!
  groupsConnection(request: PageRequest): GroupsConnection!
  inputServersConnection(request: PageRequest): InputServersConnection!
  integrationsConnection(request: PageRequest): IntegrationsConnection!
  outputServersConnection(request: PageRequest): OutputServersConnection!
  membershipsConnection(request: PageRequest): OrganizationMembershipsConnection!
  rolesConnection(request: PageRequest): RolesConnection!
}
```