The Get-PWCurrentUser cmdlet seems to be returning an object with type 'PWWrapper+ProjectWiseUser', rather than 'Bentley.ProjectWise.PowerShell.Common.User'.
This means that to use it is cumbersome to use it with other cmdlets which have users as inputs. For isntance to get the working directory of the user running the script, I have to do this:
$worDir = Get-PWUserSettingByUser -InputUsers (Get-PWUsersByMatch -email (Get-PWCurrentUser).Email) -SettingName WorkDir_WhenUsingPWExplorer
Any chance we can get that cmdlet changed to align with the rest of the user cmdlets?
I am going to assume you are using the PWPS module when experiencing incompatibilities with the type. If you use cmdlets from the PWPS_DAB module, they will all be compatible.
No, I'm using PWSP_DAB (1.25.5), this is what confused me.
I will look into this.