Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Is there a cmdlet that lets me add Enterprise Groups or Roles to a Connected Project?
    • Sign In

    • State Not Answered
    • Replies 1 reply
    • Subscribers 66 subscribers
    • Views 142 views
    • Users 0 members are here

    Is there a cmdlet that lets me add Enterprise Groups or Roles to a Connected Project?

    Brian Glaser
    Offline Brian Glaser 1 month ago

    I'm not talking about groups or roles that are defined in PW Administrator. 

    I am referring to the groups or roles defined in the PW Web environment (365 or Connected Projects). 

    We can synchronize with Workarea, but that doesn't help me manage the team members who only use the web. 

    • Sign in to reply
    • Cancel
    • MWBSI
      0 MWBSI Thu, Oct 19 2023 11:35 AM

      $token = Get-PWConnectionClientToken
      $projectId = "your guid project id"

      Add-PWUsersToPw365Project2 -Token $token -Roles "Account Manager" -PW365ProjectId $projectId  -verbose -emails "sam.jones@acme.com"

      Will add the Account Manager role to the already existing user sam.jones@acme.com .   The user will be added to the project if if already exists.

      Althugh the parameter names are different, there is an analagous Add-PWUsersToConnectedProject2.

      If the TeamMember role already exists or you don't care about it being added, you leave off the "2" and  use Add-PWUsersToP365Project or Add-PWUsersToConnectedProject.

      Hope this helps,

      Mark Weisman | Bentley Systesm

      • 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