VMware Cloud Foundation 5.x
The following is one of the workaround you can perform to recover from the access denied issue:
OR
Rotate the Client Secret. Refer to the following article:
https://developer.okta.com/docs/guides/client-secret-rotation-key/main/
vmon-cli -r vsphere-ui
vmon-cli -r trustmanagement