Update Set-PASUser documentation and function to allow login hour range from 0 to 24. Also added a missing vaultAuthorization
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
loginToHourparameter from0-23to0-24in both the code (Set-PASUser.ps1) and documentation (Set-PASUser.md) -
Added
IBVSDKto the list of values for theunAuthorizedInterfacesparameter in theSet-PASUserfunction. -
Added
PKIPNas a valid value to theallowedAuthenticationMethodsparameter in theNew-PASDirectoryMapping,Set-PASDirectoryMapping,New-PASUser, andSet-PASUserfunctions 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