Client credentials is more server to server authentiation so there is no standard way to impersonate user.
This is typically supported but auth code flow? Are you able to switch to it?
If not then maybe you can explore customAuth flow? Custom Bearer Grant Type