Module: OrganizationController

Organization Controller Layer This controller handles HTTP requests and responses for organization operations. It serves as the interface between the HTTP layer and the organization service, managing request validation, response formatting, and error handling. Key responsibilities: - HTTP request/response handling - Input validation and sanitization - Error response formatting - Service layer coordination - Status code management Authentication requirements: - Most endpoints require admin privileges - Data updates require employee privileges - Public endpoints for organization listing
Source:

Members

(static, constant) getAllOrganizations

Get all organizations in the system Retrieves a complete list of all properly initialized organizations. This endpoint returns only organizations that have the required self-referencing memberSys links, ensuring data quality and consistency.
Source:

(static, constant) getOrganizationsByUIDs

Get organizations by specific UIDs (batch retrieval) Retrieves organization details for a provided list of organization UIDs. This endpoint is optimized for batch operations where you need information about multiple specific organizations rather than all organizations.
Source:

(static, constant) getSuperAdminForOrga

Get super admin user for a specific organization Retrieves the system user (super admin) that was created for the organization during initialization. This user is essential for automated operations, system tasks, and API integrations within the organization's context.
Source:

(static, constant) initializeOrganization

Initialize a new organization with complete setup This endpoint creates a new organization with all required components: organization record, system user, super admin, visibility filters, and proper multi-tenant isolation. It's the primary endpoint for setting up new tenant environments.
Source:

(static, constant) updateOrganizationData

Update organization data with comprehensive property management This endpoint provides advanced organization data management with support for adding, updating, and removing properties. It handles null values as deletion indicators and provides detailed change tracking.
Source:

(static, constant) updateOrganizationLogin

Update organization login UID association This endpoint updates the login UID association for a specific organization. It allows changing which login system UID is linked from the login system (e.g. keycloak) for the organization.
Source: