Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum Add Users via WSG
    • Sign In

    • State Not Answered
    • Replies 2 replies
    • Subscribers 61 subscribers
    • Views 184 views
    • Users 0 members are here

    Add Users via WSG

    Chris Bond
    Offline Chris Bond 5 months ago

    Is it possible to add users to ProjectWise via the WSG?

    In the patchnotes for ProjectWise Plug-in for WSG Update 3.4 (10.00.03.436) it says:

    New user related functionality:

    • Create ProjectWise user with federated identity (Bentley IMS account)
    • Select user federated identity information
    • Ability to filter users by federated identity Name and FederationId properties

    I can't see in the schema where we can select the user federated Info & when I try and send a POST request to the User class I get the error:

     "errorMessage": "User must provide federated identity relationship."

    But I can't see how to get this federated identity to create the relationship.  Has anyone had any success with this?

    • Sign in to reply
    • Cancel
    • Iwan Kinal
      0 Offline Iwan Kinal Mon, Mar 27 2023 5:49 PM

      Hi,

      Yes, we have made it work. Here is the Body of the POST request that we use:

      {
      "instance": {
      "schemaName": "PW_WSG",
      "className": "User",
      "properties": {
      "Description": "",
      "Email": "example@domain.com",
      "Name": "Firstname Lastname",
      "Type": 2
      },
      "relationshipInstances": [
      {
      "schemaName": "PW_WSG",
      "className": "FederatedIdentity",
      "direction": "forward",
      "relatedInstance": {
      "schemaName": "PW_WSG",
      "className": "Identity",
      "properties": {
      "Name": "example@domain.com"
      }
      }
      }
      ]
      }
      }

      Thanks,

      I. Kinal

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Peter Willmen
      0 Offline Peter Willmen Mon, Jul 3 2023 12:12 PM in reply to Iwan Kinal

      Any idea why I am getting the following error:

       "Error creating a new user. User is not an administrator."

      I am an Administrator. Do I need to add any additional authentication?

      • 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