Skip to content

Commit

Permalink
v2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bk-cs committed Sep 3, 2021
1 parent 04cfbbb commit 9bb6346
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions PSFalcon.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ Command Changes
return more than 10,000).
* New-FalconUser
Removed '-Password' parameter because the API doesn't allow the password assignment, which was against
best practices for user creation anyway.
Added password complexity check to '-Password' parameter.
GitHub Issues
* Issue #70, #71: Updated the 'Depth' value of 'ConvertTo-Json' throughout module.
Expand Down
8 changes: 6 additions & 2 deletions Public/usermgmt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ function New-FalconUser {
[string] $Firstname,

[Parameter(ParameterSetName = '/users/entities/users/v1:post', Position = 3)]
[string] $Lastname
[string] $Lastname,

[Parameter(ParameterSetName = '/users/entities/users/v1:post', Position = 4)]
[ValidatePattern('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{12,}$')]
[string] $Password
)
begin {
$Fields = @{
Expand All @@ -150,7 +154,7 @@ function New-FalconUser {
Inputs = Update-FieldName -Fields $Fields -Inputs $PSBoundParameters
Format = @{
Body = @{
root = @('firstName', 'uid', 'lastName')
root = @('firstName', 'uid', 'lastName', 'password')
}
}
}
Expand Down

0 comments on commit 9bb6346

Please sign in to comment.