Packer centos vm for vsphere build returns error

Hello Everyone,
I am currently trying to create a centos7 VM on Vsphere with Packer and I am getting the following permission error:

Error running boot command: error typing a boot command (code, down) 43, false: ServerFaultCode: Permission to perform this operation was denied.
Does anyone could help me please to troubleshoot this issue ?

Hello! This is a permission problem. Are you sure the user is allowed to do that?
Check it out this list of permissions I found in an older vsphere issue: vsphere-iso: Permissions Error · Issue #97 · jetbrains-infra/packer-builder-vsphere · GitHub

I indeed solved this problem by enabling inject usb hid scan code on Vsphere