GetUserByUserId throws exception

GetUserByUserId throws exception

jjstr8
Collaborator Collaborator
251 Views
2 Replies
Message 1 of 3

GetUserByUserId throws exception

jjstr8
Collaborator
Collaborator

I'm trying to get the user name of a file that's checked out by another user.  When I call GetUserByUserId, it throws an Autodesk.Connectivity.WebServices.VaultServiceErrorException exception.  I'm assuming it's a credentials issue, since it works with my own user ID.  Hovering over the same file in the Vault browser tab in Inventor shows the user name, so I'm not sure couldn't get the same information in code.  Is there any way to make this work? 

0 Likes
Accepted solutions (1)
252 Views
2 Replies
Replies (2)
Message 2 of 3

Markus.Koechl
Autodesk
Autodesk
Accepted solution

This is something to be configured and requires no coding. Ensure that all users get read access to user/group definitions. The best practice to do this is to create a custom role that includes this and add this role to your main user group. 

MarkusKoechl_0-1668683102389.png

 



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 3

jjstr8
Collaborator
Collaborator

@Markus.Koechl :  Thank you for the response.  Our IT department handles changes like that, and they're not very quick to respond.  I was hoping that someone knew the back-door method that the Vault add-in for Inventor uses.

0 Likes