Example #1
0
        public static List <string> GroupsAll()
        {
            Check();
            if (groupStash == null)
            {
                groupStash = logicClient.Value.GroupInformartions();
            }

            return(groupStash.grpsAll);
        }
Example #2
0
        public TFSGroup GroupInformartions()
        {
            var    grpList    = new TFSGroup();
            string projectUri = ProjectUri;

            TeamFoundationIdentity[] projectGroups = IdentityService.ListApplicationGroups(projectUri, ReadIdentityOptions.None);

            foreach (TeamFoundationIdentity projectGroup in projectGroups)
            {
                bool isMem = IdentityService.IsMember(projectGroup.Descriptor, TFSIdentity.Descriptor);
                if (isMem)
                {
                    grpList.grpsUser.Add(projectGroup.DisplayName);
                }

                grpList.grpsAll.Add(projectGroup.DisplayName);
            }

            return(grpList);
        }