<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C#: Getting members of a group the easy way with .Net 3.5 (Discussion groups, nested, recursive, security groups, etc.)</title><link>http://blogs.technet.com/b/brad_rutkowski/archive/2008/04/15/c-getting-members-of-a-group-the-easy-way-with-net-3-5-discussion-groups-nested-recursive-security-groups-etc.aspx</link><description>Just saw this being discussed internally and thought that it was quite useful to a lot of you out there so I thought I'd share.&amp;#160; The true boolean to grp.GetMembers tells it to recursively get the nested group members too.&amp;#160; I tested this out</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: C#: Getting members of a group the easy way with .Net 3.5 (Discussion groups, nested, recursive, security groups, etc.)</title><link>http://blogs.technet.com/b/brad_rutkowski/archive/2008/04/15/c-getting-members-of-a-group-the-easy-way-with-net-3-5-discussion-groups-nested-recursive-security-groups-etc.aspx#3263617</link><pubDate>Tue, 14 Jul 2009 04:08:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3263617</guid><dc:creator>wiky</dc:creator><description>&lt;p&gt;PrincipalContext should be disposed.&lt;/p&gt;
&lt;p&gt;using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain, domainName)) &lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3263617" width="1" height="1"&gt;</description></item><item><title>re: C#: Getting members of a group the easy way with .Net 3.5 (Discussion groups, nested, recursive, security groups, etc.)</title><link>http://blogs.technet.com/b/brad_rutkowski/archive/2008/04/15/c-getting-members-of-a-group-the-easy-way-with-net-3-5-discussion-groups-nested-recursive-security-groups-etc.aspx#3120251</link><pubDate>Sat, 06 Sep 2008 23:57:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3120251</guid><dc:creator>hank voight</dc:creator><description>&lt;p&gt;This is most valuable, thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3120251" width="1" height="1"&gt;</description></item><item><title>re: C#: Getting members of a group the easy way with .Net 3.5 (Discussion groups, nested, recursive, security groups, etc.)</title><link>http://blogs.technet.com/b/brad_rutkowski/archive/2008/04/15/c-getting-members-of-a-group-the-easy-way-with-net-3-5-discussion-groups-nested-recursive-security-groups-etc.aspx#3039459</link><pubDate>Fri, 18 Apr 2008 22:02:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3039459</guid><dc:creator>BooRadely</dc:creator><description>&lt;p&gt;Update: &amp;nbsp;If you use this code and it blows up with a certain group with the exception: There is no such object on the server.&lt;/p&gt;
&lt;p&gt;Then:&lt;/p&gt;
&lt;p&gt;In my case the user it kept blowing up on was a deleted account which still was persistent in the directory because it had not been garbage collected yet. &amp;nbsp;When I ran the exe with elevated permission it completed as expected, but as a regular account you cannot see the object and therefore the framework doesn’t handle this.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3039459" width="1" height="1"&gt;</description></item></channel></rss>