Friday 15 August 2014

TFS 2013 get All TFS group including Windows group -



TFS 2013 get All TFS group including Windows group -

i working on tfs 2013 project level permission of tfs group. cannot windows group. utilize next code list groups:

var applicationgroups = identitymanagementservice.listapplicationgroups(project.uri.absoluteuri, readidentityoptions.none);

but code list tfs groups under teams ([project]\project team) , vso groups ([project]\build administrators, [project]\contributors, [project]\readers, [project]\project administrators, [project]\project valid users, [project]\tfs_build_administrators, [project]\tfs_build_readers) not windows groups (tfs_builder, tfs_dev_am...) .

does know how can or why wasn't able under windows groups?

windows groups not stored in tfs, in active directory. query active directory through tfs, use:

var collection = new tfsteamprojectcollection(new uri("http://mytfs:8080/tfs/mycollection")); var gss = collection.getservice<igroupsecurityservice>(); identity = gss.readidentity(searchfactor.accountname, "myalias", querymembership.direct);

that's user, can seek getting groups through well.

tfs

No comments:

Post a Comment