using System.DirectoryServices; using System.DirectoryServices.AccountManagement; namespace DigitalData.Core.Contracts.Application { public interface IDirectoryService : IServiceBase { IServiceResult> ReadAllGroupAsCollection(); IServiceResult> ReadAllGroupAsCollection(string serverAddress, string username, string password); IServiceResult>> ReadGroupByPropertyName(string propName); IServiceResult> ReadUserByGroup(string groupIdentityValue, IdentityType groupIdentityType = IdentityType.Name, bool recursive = true); } }