0

I've got a VM with AD & TFS 2015 set up.

I've added a group to the AD : 'g_buildagents' and I was attempting to add that group to the TFS Group containing the build service accounts (BuildServiceAccounts?), however TFS failed to retrieve the 'g_buildagents' group from the AD.

Any idea why?

Maciek
  • 155
  • 2
  • 6
  • Check the `SCOPE` of the AD group. I don't remember without looking but if it's `DOMAIN LOCAL`, change to `GLOBAL` or vice versa... I think it's `GLOBAL` so give that a stab, and then refresh TFS just to be thorough and then see if it'll see the AD group afterwards. Some of this may depend on your domain functional and forest functional levels as well. – Pimp Juice IT Nov 11 '15 at 02:56
  • The sync jobs runs every hours: have you waited enough? – Giulio Vian Nov 11 '15 at 14:24
  • I've installed it 2 days ago, so I'd say - yes. – Maciek Nov 11 '15 at 14:45
  • Then, it could be a simple UI thing: the first time you use an AD account (user or group) not referenced by any other group, you must refer to it using DOMAIN\account syntax. – Giulio Vian Nov 11 '15 at 14:55
  • That worked! If you'd kindly copy/paste your comment - I'll accept it as an answer :) – Maciek Nov 11 '15 at 15:52

1 Answers1

1

Background info

TFS use a background synchronization job, scheduled every hour, to look for changes in Active Directory (or the local machine workgroup if the server is not domain joined). You can force the job to run using any of these techniques.

It could be that you still do not see the user or name listed in the UI even if synchronization is working. The synchronization job does not automatically creates a user profile in the database for every user or group in the database, to avoid useless growth in big enterprises.

The solution

In such a case, the first time you use a new AD account (user or group), you must refer to it using DOMAIN\account syntax so that TFS look up in AD on the fly and insert a profile record in the database for the account.

Further Troubleshooting

Mr. Hinsh has a good troubleshooting guide if you still have troubles.

Giulio Vian
  • 508
  • 2
  • 10