<?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>Creating Audience Rules via the Object Model</title><link>http://blogs.technet.com/chris_hernandez/archive/2007/10/03/creating-audience-rules-via-the-object-model.aspx</link><description>SharePoint Server (MOSS) was designed as a platform for building applications upon. Using the SharePoint Server Object Model (OM) exposes many different and often more complicated operations than what can be done with the UI only. An example of this is</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Creating Audience Rules via the Object Model</title><link>http://blogs.technet.com/chris_hernandez/archive/2007/10/03/creating-audience-rules-via-the-object-model.aspx#2658271</link><pubDate>Wed, 19 Dec 2007 02:26:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2658271</guid><dc:creator>stevensux</dc:creator><description>&lt;p&gt;Is there a trick to creating rules (programmatically) that involve membership in a domain group? When i try this the audience is created with the rules I specify but they all say &amp;quot;Non-existent Membership group&amp;quot; even though the group exists. &lt;/p&gt;
</description></item><item><title>re: Creating Audience Rules via the Object Model</title><link>http://blogs.technet.com/chris_hernandez/archive/2007/10/03/creating-audience-rules-via-the-object-model.aspx#2658436</link><pubDate>Wed, 19 Dec 2007 03:42:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2658436</guid><dc:creator>chrishe</dc:creator><description>&lt;p&gt;Are you trying with something like this:&lt;/p&gt;
&lt;p&gt;AudienceRuleComponent r1 = new AudienceRuleComponent(&amp;quot;DL&amp;quot;, &amp;quot;Member of&amp;quot;, &amp;quot;Domain\GroupName&amp;quot;);&lt;/p&gt;
&lt;p&gt;If so then yes, there is a bit of a trick since you will need to get the distinguished name of the group in question. You can get the DN either programmatically (sorry I don't have sample code in front of me) or using a tool like ADSI Edit).&lt;/p&gt;
</description></item></channel></rss>