Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum "Find and Replace" UserGroup in Access Control?
    • Sign In

    • State Verified Answer
    • Replies 2 replies
    • Subscribers 65 subscribers
    • Views 194 views
    • Users 0 members are here
    • powershell

    "Find and Replace" UserGroup in Access Control?

    Robert Golding
    Offline Robert Golding 8 months ago

    Hi Everyone,

    Im working on a new Project Creation tool for our company, usually to do this we copy a template, rename etc then we export the Access Control to Excel, rename the Group to the new Project and reimport.

    I'm wondering if there is a way with PowerShell to essentially "find and replace" user groups within a folder structure to apply the same security permissions without having to export the file and reimport.

    So for example anywhere the group "Project1234 - Managers" appears in the access control it can change to "Project4321 - Managers", the new project team can be added with the same exact permissions as the previous - but with a different group.

    • Sign in to reply
    • Cancel

    Top Replies

    • Brian Flaherty
      Offline Brian Flaherty Fri, Jan 27 2023 11:06 AM +1 verified
      Take a look at the following cmdlets: Get-Help Update-PWFolderSecurityByUserListSwap -Full Get-Help Update-PWFolderSecurityByUserListSwapWithWorkflow -Full
    • Brian Flaherty
      +1 Offline Brian Flaherty Fri, Jan 27 2023 11:06 AM

      Take a look at the following cmdlets:

      • Get-Help Update-PWFolderSecurityByUserListSwap -Full
      • Get-Help Update-PWFolderSecurityByUserListSwapWithWorkflow -Full

      Answer Verified By: Robert Golding 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Reject Answer
      • Cancel
    • Robert Golding
      0 Offline Robert Golding Tue, Jan 31 2023 3:20 AM in reply to Brian Flaherty

      Perfect, exactly what i was after! Thank you!

      • 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