I use the following command to get the latest version of a branch for a specific user (not the one running the process):
tf get $/MyProject/Development /version:WmyPC;otherUser /login:otherUser,otherPassword
Bt I keep getting:
The operation cannot be completed because the user (otherUser) does
not have one or more required permissions (Use) for workspace…
Any ideas?
By default, when you create a workspace it is a ‘Private Workspace’ – this means that the person who created it is the only person who can “use” it (which is why you get that specific error message).
What you will want to do is change the workspace to a ‘Public Workspace’ – this updates the permissions and allows multiple people to use the same workspace, but using their own credentials.
For more information, see my blog post TFS2010: Public Workspaces.