Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get Vault User from JobHanlder Execute method

1 REPLY 1
SOLVED
Reply
Message 1 of 2
simonsson
365 Views, 1 Reply

Get Vault User from JobHanlder Execute method

Is it possible to get the Vault user name of the user that initiated the job from the Execute method.

 

I tried context.VaultContext.UserId together with the AdminService to get the Vault user and it's name, but it gives me the JobProcessor user which I'm not interested in at all. I'm interested in the user that made the state change in Vault.

 

Is this possible?

 

This is Workgroup 2011 and C#.NET (in my case).

 

Thanks!

1 REPLY 1
Message 2 of 2
Redmond.D
in reply to: simonsson

It sounds like the job is from a file lifecycle state change.  Since a state change creates a new version, you can look at the CreateUserName property on the File object.



Doug Redmond
Software Engineer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report