UndoCheckOut on foreign checkouts

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
Cast
Posts: 8
Joined: Thu Dec 06, 2007 12:56 pm

UndoCheckOut on foreign checkouts

Post by Cast » Fri Feb 01, 2008 12:49 pm

Hello sourcegear!

.Net API

1. Is there a way for the client api to check out files in another user's name without logging in as that user?

And kind of related, though of the biggest importance even if #1 cannot be done...
2. Is there a way for the client api to undo a check out made by another user without logging in as that user?

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Feb 01, 2008 1:38 pm

Number 1 is not possible.

Number 2 is possible, if you login as a global admin user and call the UndoCheckout admin function. This will undo all checkouts on a file by all users. If that's acceptable, then I can give you more information.

Cast
Posts: 8
Joined: Thu Dec 06, 2007 12:56 pm

Post by Cast » Tue Feb 05, 2008 2:30 pm

Thank you for the answer Jeremy but that solution wouldn't work for us. Placing that broad of privilege on an account with a password available in the API-handler would be too high of an internal risk. It is too bad the permissions are not more granular. I'll hope for it. =)

We'll just stick with the usual way, pestering the sysadmin, instead of building it into our web app.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: UndoCheckOut on foreign checkouts

Post by jeremy_sg » Thu Sep 25, 2008 7:40 am

If that is your concern, you have the capability to mark some users as "repository admins", which means they can perform admin functions (such as undo checkout) only on one specific repository. They won't have any global admin privileges.

Check out:

http://download.sourcegear.com/misc/vau ... rators.htm

for more information on Repository Admins.
Subscribe to the Fortress/Vault blog

Post Reply