Skip to content

Commit

Permalink
test doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaranionjc committed Dec 16, 2024
1 parent f2787ce commit 08f13e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
10 changes: 0 additions & 10 deletions PowerShell/JumpCloud Module/Docs/Remove-JCUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ Remove-JCUser [-Username] <String> [-force] [<CommonParameters>]
Remove-JCUser -UserID <String> [-ByID] [-force] [<CommonParameters>]
```

### CascadeManager
```
Remove-JCUser [-Username] <String> [-ByID] -CascadeManager <String> [<CommonParameters>]
```

### CascadeManagerUser
```
Remove-JCUser [-Username] <String> [-ByID] -CascadeManager <String> -CascadeManagerUser <String> [<CommonParameters>]
```

## DESCRIPTION
The Remove-JCUser function will remove a JumpCloud user from the JumpCloud organization. This will remove the deleted users access to any JumpCloud bound resources.

Expand Down
2 changes: 1 addition & 1 deletion PowerShell/JumpCloud Module/JumpCloud.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: JumpCloud Solutions Architect Team
#
# Generated on: 11/18/2024
# Generated on: 12/16/2024
#

@{
Expand Down
6 changes: 3 additions & 3 deletions PowerShell/JumpCloud Module/Public/Users/Remove-JCUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ UserID has an Alias of _id. This means you can leverage the PowerShell pipeline
$CascadeManagerId = $CascadeManagerValue
Write-Debug "$CascadeManagerId is a valid JumpCloud User"
} else {
Write-Error "User does not exist. Please enter a valid UserID."
Write-Error "UserId $($CascadeManagerValue) does not exist. Please enter a valid UserID."
# Throw the script
Throw
}
Expand All @@ -96,7 +96,7 @@ UserID has an Alias of _id. This means you can leverage the PowerShell pipeline
Write-Debug "CascadeManagerId is a valid JumpCloud User $CascadeManagerId"

} else {
Write-Error "User does not exist. Please enter a valid Username."
Write-Error "Username $($CascadeManagerValue) does not exist. Please enter a valid Username."
# Throw the script
Throw
}
Expand All @@ -116,7 +116,7 @@ UserID has an Alias of _id. This means you can leverage the PowerShell pipeline
$Username = $UserHash.GetEnumerator().Where({ $_.Name -contains ($UserID) }) | Select-Object -ExpandProperty Value | Select-Object -ExpandProperty username
Write-Host "UserID $($UserId) is a valid JumpCloud User: $($Username)"
} else {
Write-Error "User does not exist. Please enter a valid UserID."
Write-Error "UserId $($UserID) does not exist. Please enter a valid UserID."
# Throw the script
Throw
}
Expand Down

0 comments on commit 08f13e8

Please sign in to comment.