Functions/User/Get-PASLoggedOnUser.ps1

# .ExternalHelp psPAS-help.xml
function Get-PASLoggedOnUser {
    [CmdletBinding()]
    param(

    )

    BEGIN { }#begin

    PROCESS {

        #Create URL for request
        $URI = "$Script:BaseURI/WebServices/PIMServices.svc/User"

        #send request to web service
        $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $Script:WebSession

        If ($null -ne $result) {

            $result | Add-ObjectDetail -typename psPAS.CyberArk.Vault.User

        }

    }#process

    END { }#end

}