Closed kyrios123 closed 8 months ago
Hi @kyrios123 , we unfortunately do not observe the same behaviour.
As shown in this screenshot, we are able to resume management of a CPM disabled account, in-line with the expected behaviour:
/secretManagement/automaticManagementEnabled
is True instead of False/secretManagement/manualManagementReason
is a blank value instead of (CPM)MaxRetries
Please do attempt to replicate the process outside of the module to confirm if the action also fails - we have a guide on how to do this here: https://pspas.pspete.dev/docs/troubleshooting/#manual-api-command-testing
If you find supporting evidence suggesting fixes required in the module's code, include it in a response to this issue.
Hi @pspete
Thank you for the feedback. I found out that this actually happens when there is no CPM assigned to the safe containing the account.
In the meantime I found out that you actually already developed a method that does what I want to do : Enable-PASCPMAutoManagement
. Perhaps it would be nice to handle this special case in a future version of your function because I find it weird that the API behaves as if everything was OK while it did actually not update anything.
Sorry for the bothering. I am closing this issue since it's for upstream.
Describe the issue Trying to set automaticManagementEnabled from false to true using Set-PASAccount does not work
To Reproduce
$operations
to replace the value of/secretManagement/automaticManagementEnabled
withtrue
. Also try to replace/secretManagement/manualManagementReason
with""
(I also tried to remove it).Set-PASAccount -AccountID 89_7 -operations $operations
Here is the code `[array]$operations += @{"op"="replace";"path"="/secretManagement/automaticManagementEnabled";"value"="true"} [array]$operations += @{"op"="replace";"path"="/secretManagement/manualManagementReason";"value"=""}
Set-PASAccount -AccountID 89_7 -operations $operations `
Expected behavior
/secretManagement/automaticManagementEnabled
should beTrue
instead ofFalse
/secretManagement/manualManagementReason
should contain a blank value instead of(CPM)MaxRetries
Screenshots & Console Output
Your Environment Include relevant details about your environment
Additional context NA