psPAS icon indicating copy to clipboard operation
psPAS copied to clipboard

Update Set-PASUser documentation and function to allow login hour range from 0 to 24. Also added a missing vaultAuthorization

Open johannesconsulting opened this issue 3 months ago • 0 comments

Description

This pull request updates the Set-PASUser command and its documentation to fix a issue with loginToHour parameter and adds a missing authorized interface option. Set-PASUser -id 22 -userActivityLogRetentionDays 7 does not work if the account is set to 24 as the function is limited to 23 hours (accounts can have 0-24, not 0-23).

  • Expanded the valid range for the loginToHour parameter from 0-23 to 0-24 in both the code (Set-PASUser.ps1) and documentation (Set-PASUser.md)

  • Added IBVSDK to the list of values for the unAuthorizedInterfaces parameter in the Set-PASUser function.

  • Added PKIPN as a valid value to the allowedAuthenticationMethods parameter in the New-PASDirectoryMapping, Set-PASDirectoryMapping, New-PASUser, and Set-PASUser functions to support an additional authentication method

Type of change

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that makes existing functionality work differently)
  • [x] Documentation update (psPAS website or command help content)
  • [ ] Other (see description)

How Has This Been Tested?

  • [ ] Pester test(s) update required
  • [ ] Pester test(s) updated
  • [x] Pester test(s) passing

Test Configuration:

  • PowerShell version: 7
  • CyberArk PAS version: 14.6
  • OS Version: Windows Server 2022

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have followed the contributing guidelines.
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new test failures or errors
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [ ] I have opened & linked a related issue
  • [ ] I have linked a related issue

johannesconsulting avatar Oct 14 '25 20:10 johannesconsulting