Unexpected VMware Cloud Director error. This operation is denied./opt/vmware/h4/cloud/log/cloud.log file on the Cloud Replication Management Appliance, an entry similar to:2023-12-19 15:19:03.190 ERROR - [UI-########-####-####-####-############-####-##] [https-jsse-nio-8443-exec-10] c.v.h.c.c.error.ExceptionAdvisorBase : A GET request from <tenant>@<organization>[###.###.#.##] to /config/vcloud-org-associations?site=<vCDA-Site> failed.com.vmware.vcloud.client.exception.VcloudException: (Major code = 403, minor code = ACCESS_TO_RESOURCE_IS_FORBIDDEN) - [ UI-########-####-####-####-############-####-##-########-####-####-####-############ ] This operation is denied. at com.vmware.vcloud.client.VcloudClient.lambda$defaultErrorDeserializer$0(VcloudClient.java:297) at com.vmware.rest.client.AbstractRestClient.convert(AbstractRestClient.java:225) at com.vmware.vcloud.client.XmlRestClient.exchange(XmlRestClient.java:92) at com.vmware.vcloud.client.XmlRestClient.exchange(XmlRestClient.java:68) at com.vmware.vcloud.client.VcloudClient.exchange(VcloudClient.java:258) at com.vmware.vcloud.client.VcloudClient.getOrgAssociations(VcloudClient.java:1215)/opt/vmware/vcloud-director/logs/vcloud-container-debug.log on the Cloud Director cell that processed the log in task, an entry similar to:pool-jetty-624507 | OperationsManagerImpl | Operation denied, required but missing operations:[ORGANIZATION_VIEW_ASSOCIATIONS]Operations not in users context. | requestId=UI-########-####-####-####-############-####-##-########-####-####-####-############,request=GET https://vcloud.example.com/api/admin/org/######-####-####-####-############/associations,requestTime=1699866588017,remoteAddress=###.###.#.##:59060,userAgent=Apache-HttpClient/4.5.13 (Java/11.0.17),accept=application/*+xml;version 36.0This issue occurs when the role assigned to the tenant user being used to authenticate with the remote Cloud Director site is missing the "Organization: Edit Association Settings" right in Cloud Director.
To resolve this issue, add the "Organization: Edit Association Settings" right to the tenant user's role. For more information, see the Managing VMware Cloud Director Rights and Roles