Skip to content

Organization API / Controller Support #5967

@nairaj2

Description

@nairaj2

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Implement backend API and controller support for the new Organization and OrganizationRole models introduced in #5962. This enables organizations, membership, roles and invitation workflows to be managed

Complexity: Medium
Target branch: feature_organization_model

Context

Issue #5962 introduces the Organization and OrganizationRole models. Additional backend work is needed to support creating, updating, and managing organizations and memberships.

The Change

Add API and controller layer support for organizations and roles:

  • Implement REST API endpoints for:
    - Organization CRUD (create, read, update, delete)
    - Organization membership listing
    - Role assignment and updates
    - Invitation handling (invite, accept, reject if applicable)
  • Add permission checks based on OrganizationRole.permissions
  • Ensure only authorized users can modify organization data
  • Add pagination/filtering where appropriate
  • Add API tests for all endpoints

Out of Scope

Acceptance Criteria

  • Organization management functionality
  • Organization membership management functionality
  • Organization roles can be assigned and updated
  • Organization role permissions are enforced
  • Invitation-related workflows are supported where applicable

Testing

  • Automated tests cover organization management functionality
  • Automated tests verify permission enforcement
  • Automated tests cover membership and role management scenarios

AI usage

Used AI to create an initial draft, then edited and reviewed carefully focusing on expected behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions