/api/vApp/vapp-<vapp_id>/action/recomposeVApp API call fails as a Tenant user with an error of the form:message="[ ########-####-####-####-############ ] Either you need some or all of the following rights [VAPP_DELETE] to perform operations [VAPP_RECOMPOSE] for ########-####-####-####-############ or the target entity is invalid." majorErrorCode="403" minorErrorCode="ACCESS_TO_RESOURCE_IS_FORBIDDEN"/>This issue occurs if the Delete a vApp Right is not present on both the Role assigned to the Tenant user and a Rights Bundle assigned to the Tenant's Organization.
The Delete a vApp Right is needed for multiple operations including for vApp Delete and vApp Recompose.
To resolve the issue add the Delete a vApp Right to the Role assigned to the Tenant user and to a Rights Bundle published to the Tenant's Organization.
To add Rights to a Tenant Global Role follow the documentation, Managing Global VMware Cloud Director Tenant Roles.
To add Rights to a Rights Bundle and publish it to an Organization follow the documentation, Managing Rights Bundles in VMware Cloud Director.