pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
286 stars 90 forks source link

Unable to change EPVUSER authentication #482

Closed sabya646 closed 10 months ago

sabya646 commented 10 months ago

Hi pspete,

While trying to change the authentication method of EPVUSER (external users) using Set-PASUser command, I am getting below error:

Invoke-PASRestMethod : [500] Update of the requested user property is not allowed for an external user. At line:467 char:14

How can I update the authentication type then?

pspete commented 10 months ago

https://www.google.com/search?q=Update+of+the+requested+user+property+is+not+allowed+for+an+external+user&oq=Update+of+the+requested+user+property+is+not+allowed+for+an+external+user&aqs=edge..69i57j0i5i30.343j0j1&sourceid=chrome&ie=UTF-8

Check the top Google result

pspete commented 10 months ago

Closing as this is not something to fix in the module code

sabya646 commented 10 months ago

Hi pspete, any possible reason why it is throwing that error? I am using the command with below parameters, not passing anything else.

Set-PASUser -id 123 -username testuser -authenticationMethod AuthTypeRADIUS

I am unable to understand the cause of the error and possible fix via automation. I am going through the google searches. Meanwhile any guidance is highly appreciated.

pspete commented 10 months ago

The error is not generated by the module. It is an error reported from the vault for the action being performed.

sabya646 commented 10 months ago

Does this mean configuration issue with my vault environment? Or should I supply additional parameters mandatorily to fulfill the user update request? Let me check vault trace logs.

pspete commented 10 months ago

See the module troubleshooting guide here: https://pspas.pspete.dev/docs/troubleshooting/