Get Active Directory TFS Based TeamFoundationIdentity

I have a .Net application that runs post-processor (manual) tests in TFS2010 through Microsoft Test Manager and separate ITestCaseResult instances have TeamFoundationIdentity on their .RunBy and I was wondering how / if I could get user departments based on this identity.

Tfs users are (active directories) domain users, but TeamFoundationIdentity does not seem to give direct access to the base windows / advertisement, so I was wondering if there is a common denominator between Tfs and the Windows identifier that I can use to extract the department (s) )?

+4
source share
1 answer

There are two things about TeamFoundationIdentity that can get you back to your AD account. First, the domain name and account name must be the same. With these values, you can get the domain identifier with the form "domain \ accountName". In addition, TeamFoundationId is a GUID that is usually copied directly from AD. I'm not too modern with the AD API, but this should close you.

+1
source

Source: https://habr.com/ru/post/1434560/


All Articles