Closed holger-weihe closed 1 year ago
There was a change in the Powershell module to use the v4 API and this error was introduced. We will fix this.
Will you please try this fix. https://github.com/OneIdentity/safeguard-ps/pull/454
Fixed build may be found here: https://www.powershellgallery.com/packages/safeguard-ps/7.2.88225-pre
@holger-weihe Have you been able to verify the fix?
@petrsnd Thanks for fixing. Verified and my script now works again.
After update of the safeguard-ps package from version 6 to 7 the cmdlet New-SafeguardAccessRequest does not work anymore. It looks like the cmdlet ignores the -AccessRequestType parameter so if you have an access request policy in Safeguard which gives access for the requested acccount on that asset in example to a password and a session the cmdlet will find more then one object which will cause an error because the cmdlets expects to find one object only.
If you run the script attached with the account configured as described you will get something like:
almauser.ps1.txt