Force AD Replication When Adding Users

by Kevin
1 April 2011

Because Team Foundation Server works across so many different applications (TFS services, SharePoint, Reporting, etc.) the best way to manage security is by setting up Active Directory groups. However, whenever you add a new user to the group you’ll quickly notice that it takes a long time before the user actually has access.

By default this process runs every hour, which for most teams, doesn’t cut it. But, there are a few ways to force this process to run:

•Remove and re-add the securtiy group
•Call the job web service to queue and identity sychronization job
•Use this awesome tool: TfsSyncIdentities.exe (zip file)

The syntax of the command is very straight forward. From the command line type:

TfsSyncIdentities.exe /server:http://projectportal.tfsserver.com:80

Where the /server paramater points to your TFS server. We actually use this as part of our service whenever a user is added or removed from the project. Instant TFS access!

Posted in

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *