CoreOps/Chap/Get-SDPChapUser.ps1
function Get-SDPChapUser { param( [parameter(ValueFromPipelineByPropertyName)] [Alias('pipeName')] [string] $name, [parameter()] [int] $id, [parameter()] [int] $userName, [parameter()] [string] $k2context = "k2rfconnection" ) begin { $endpoint = "host_auth_profiles" } process { # Special Ops # Query $results = Invoke-SDPRestCall -endpoint $endpoint -method GET -parameterList $PSBoundParameters -k2context $k2context return $results } } |