Get-VPASIdentityCurrentUserDetails


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET CURRENT LOGGED IN USER DETAILS IN IDENTITY


Description:

USE THIS FUNCTION TO RETRIEVE DETAILS OF THE CURRENT LOGGED IN USER IN IDENTITY


Syntax:

Get-VPASIdentityCurrentUserDetails [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$CurrentUserDetails = Get-VPASIdentityCurrentUserDetails


Outputs:

If successful:
{
         "User": "vadim@vman.com",
         "UserUuid": "jlakjd789-1234-5678-abcd-4782jskfhkjsw7",
         "TenantId": "AA12345"
}

$false if failed