A mandamus is competent and appropriate to compel municipal functionaries (executive mayor, municipal manager, and directors) to fulfill their statutory obligations to ensure that a municipality complies with court orders, even where the functionaries were not cited from the inception of proceedings. The remedy is consistent with the constitutional principle of public accountability, which is a founding value under section 1(d) of the Constitution and an object of local government under section 152(1)(a). The executive mayor, municipal manager, and director of housing have statutory obligations under the Local Government: Municipal Structures Act 117 of 1998 and the Local Government: Municipal Systems Act 32 of 2000 to ensure proper administration and service delivery. A mandamus requires the functionaries to fulfill their statutory obligations and does not expose them to contempt proceedings where they act diligently and in good faith. Policy considerations about discouraging competent persons from taking senior positions do not outweigh the constitutional imperative of accountability. However, courts must respect the separation of powers and cannot dictate to the executive how to organize its affairs beyond what is necessary to resolve the case before the court.