Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Convert-PWUserToFederated example not working
    • Sign In

    • State Verified Answer
    • Replies 2 replies
    • Subscribers 68 subscribers
    • Views 495 views
    • Users 0 members are here

    Convert-PWUserToFederated example not working

    Mike Madrid
    Offline Mike Madrid over 1 year ago

    from the help:
    Get-PWUserByMatch -Email '*bentley.com' | Convert-PWUserToFederated

    I figured out that:
    Get-PWUserByMatch is the correct cmdlet.

    the Convert-PWUserToFederate does not like to be Piped.

    Any suggestions greatly appreciated!!

    Get-PWUser -Email '*testing.com' | Convert-PWUserToFederated
    Convert-PWUserToFederated : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of 
    the parameters that take pipeline input.
    At line:1 char:36
    + Get-PWUser -Email '*testing.com' | Convert-PWUserToFederated
    +                                    ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Bentley.Project...ell.Common.User:PSObject) [Convert-PWUserToFederated], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,PWPS_DAB.ConvertPWUserToFederated
     
    Convert-PWUserToFederated : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of 
    the parameters that take pipeline input.
    At line:1 char:36
    + Get-PWUser -Email '*testing.com' | Convert-PWUserToFederated
    +                                    ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Bentley.Project...ell.Common.User:PSObject) [Convert-PWUserToFederated], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,PWPS_DAB.ConvertPWUserToFederated
     
    Convert-PWUserToFederated : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of 
    the parameters that take pipeline input.
    At line:1 char:36
    + Get-PWUser -Email '*testing.com' | Convert-PWUserToFederated
    +                                    ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Bentley.Project...ell.Common.User:PSObject) [Convert-PWUserToFederated], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,PWPS_DAB.ConvertPWUserToFederated
     
    Convert-PWUserToFederated : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of 
    the parameters that take pipeline input.
    At line:1 char:36
    + Get-PWUser -Email '*testing.com' | Convert-PWUserToFederated
    +                                    ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Bentley.Project...ell.Common.User:PSObject) [Convert-PWUserToFederated], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,PWPS_DAB.ConvertPWUserToFederated

    • Sign in to reply
    • Cancel

    Top Replies

    • Matt Kovach
      Offline Matt Kovach Wed, Jul 13 2022 5:16 PM +1 verified
      Hello Mike, I've not used this cmdlet before. However, it seems like this should work (based on the Help information): # Get ProjectWise Users. $ProjectWiseUsers = Get-PWUserByMatch -Email '*bentley…
    • Kevin van Haaren
      Offline Kevin van Haaren Thu, Jul 14 2022 10:50 AM in reply to Matt Kovach +1 verified
      Not sure it would matter but Get-PWUser is from the PWPS module that comes with ProjectWise Administrator and Convert-PWUserToFederated is from the PWPS_DAB module. Using Get-PWUsersByMatch from PWPS_DAB…

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies