Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I made a few custom tools in Vault that i want to hide for people who are not admin or lead engineer.
The problem is that VDF.Vault.Library.ConnectionManager.LogIn() requires a password and a name. Right now i hardcoded the admin credentials to call this function and it will return a Connection object with the admin credentials inside (ofcourse).
What i want is to call VDF.Vault.Library.ConnectionManager.LogIn() with the credentials of the user that is logged in:
Or another solution would be to still login as admin in my code, but somehow get the current logged in user in Vault:
Some help or example code would be greatly appreciated!
Thanks
Solved! Go to Solution.
