Hello
I am currently automating report generation from ProjectWise for a client of mine. One of the reports contains a list of all users, including the `UserList` they belong to. While I can query most of the user information from the `User` class - and then merge it with more information from a custom user information class of this project - I can't figure out how to obtain the UserList the users belong to. Which class do I need to query? Is there a way of getting the information directly from the `User` class by setting some of the query params to related classes?
Thanks
I have this same question (over 2 years later)
From Bentley Support:
In PW WSG Plugin user groups and user lists is under one class “UserCollection”
Selecting user collections (available from Update 3.4):
You can get all user groups and user lists in datasource by executing GET to https://{serverName}/ws/v2.8/Repositories/{repositoryId}/PW_WSG/UserCollection
To get specific user collection with its members (flattened) execute GET to https://{serverName}/ws/v2.8/Repositories/{repositoryId}/PW_WSG/UserCollection/{userCollectionID}?$select= Member-forward-User.*,*