Page 1 of 1

UndoCheckOut on foreign checkouts

Posted: Fri Feb 01, 2008 12:49 pm
by Cast
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?

Posted: Fri Feb 01, 2008 1:38 pm
by jeremy_sg
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.

Posted: Tue Feb 05, 2008 2:30 pm
by Cast
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.

Re: UndoCheckOut on foreign checkouts

Posted: Thu Sep 25, 2008 7:40 am
by jeremy_sg
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.