Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Export-PWProjectAccessControl not outputting permissions correctly.
    • Sign In

    • State Not Answered
    • Replies 4 replies
    • Subscribers 64 subscribers
    • Views 483 views
    • Users 0 members are here
    • powershell
    • ProjectWise
    • pwps_dab

    Export-PWProjectAccessControl not outputting permissions correctly.

    dkleinot
    Offline dkleinot over 1 year ago

    Security Protocol now set to TLS 1.2
    PWPS_DAB Version is 2.1.10.0
    This is a 64-bit process.

    All,

    I ran into an issue with the Export-PWProjectAccessControl cmdlet where it is reporting different permissions then ProjectWise Explorer is:

    VERBOSE: '200_BACKGROUND_DATA' is inheriting access control
    VERBOSE: - Type: 'Document'
    VERBOSE: - MemberName: 't202211901_cei_pm'
    VERBOSE: - AccessMask: '-PCDrwSRWf-'

    VERBOSE: '200_BACKGROUND_DATA' is inheriting access control
    VERBOSE: - Type: 'Document'
    VERBOSE: - MemberName: 't202211901_cei_design'
    VERBOSE: - AccessMask: '-PCDrwSRWf-'

    In the above output you'll see that Powershell is reporting -PCDWrwSRWf- when PW Explorer is showing --CDrwSRWf-. We don't ever give the -PCDrwSRWf- permission.

    Is there something that I'm missing or not understanding here? Or is it an issue with the cmdlet?

    Let me know if there's any additional information you need from me.

    Thanks.

    • Sign in to reply
    • Cancel
    Parents
    • Brian Flaherty
      0 Offline Brian Flaherty Fri, Aug 19 2022 3:07 PM

      I am not able to replicate your issue. These are the Verbose messages, does the actual returned datatable or exported spreadsheet contain accurate data?

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Brian Flaherty
      0 Offline Brian Flaherty Fri, Aug 19 2022 3:07 PM

      I am not able to replicate your issue. These are the Verbose messages, does the actual returned datatable or exported spreadsheet contain accurate data?

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    • dkleinot
      0 Offline dkleinot Mon, Aug 22 2022 1:49 PM in reply to Brian Flaherty

      The returned datatable matches what the Verbose messages are showing.  It was easier to just copy the data from the window. 

      I simplified up my code below.  If you need to see the full script let me know:

      $sAccess = Export-PWProjectAccessControl -InputFolder $sfolder.FullPath -FolderLevel 1
          #...
          foreach($item in $sAccess){
              #...
              $xlPermissions.Cells[$iRow,$iCol].Value = $item.Access_Control_Settings
          }
      }

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel

    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