principalcontext


GetMembers(true) don't list all users of membergroup


at first here is my code:
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "Domain");
GroupPrincipal gpx = GroupPrincipal.FindByIdentity(ctx, IdentityType.Name, "otheradmingroup");
List<string> Members = new List<string>();
foreach(Principal member in gpx.GetMembers(true))
{
Members.Add(member.SamAccountName.ToLower());
}
gpxAdmins.Dispose();
ctx.Dispose();
return Members;
the only member of my "otheradmingroup" is the "Domain Admins" group, which contains 6 ad-users.
after executing this code above, the returned list contains only the first 4 members of my "Domain Admins"
I've found the Problem.
The GetMembers() Method don't find users which have this group as there primary group.

Related Links

GetMembers(true) don't list all users of membergroup

Categories

HOME
opengl
keyboard
typelite
focus
exchange-server
risk-management
vsts-build
histogram
consul
fogbugz
flurry
azure-data-lake
video-streaming
clone
position
u-boot
specifications
jpa-criteria
swarm
slide
fbloginview
csrf
bootstrap-switch
orange-api
sonicwall
user-defined-types
playframework-2.0
pickle
pfobject
jest
error-logging
dashdb
bsd
liferay-6.2
channel
tortoisemerge
unrar
android-service
tf-idf
adapter
monitor
publishing
private-key
netapp
minikube
sendinput
code-push
non-linear-regression
sharpdx
node-apn
popen
mpmovieplayercontroller
multi-touch
metabase
libharu
decoder
traversable
bbc-micro
static-methods
trust
django-validation
servicestack-bsd
android-mapview
ruby-on-rails-4.1
fanotify
calcite
canopy
wso2ml
bootstrap-wysiwyg
dbmigrate
deque
signed
tidyr
subview
sql-processor
producer
berkeley-db-xml
windows-rt
xhprof
csslint
oxygene
lsa
armv6
ctp
codahale-metrics
libxml-js
jquery-lazyload
blobstorage
notin
axacropdf
red-system
idispatch
popup-blocker
border-box
viewpagerindicator
struts2-s2hibernate
liveconnect
glassfish-esb
kext
android-2.1-eclair
cassini
browser-based
data-retrieval
inversion
tso

Resources

Encrypt Message