How do you set the "memberof" attributehttp://forums.asp.net/t/1694732.aspx/1?How+do+you+set+the+memberof+attributeWed, 29 Jun 2011 04:45:29 -040016947324482060http://forums.asp.net/p/1694732/4482060.aspx/1?How+do+you+set+the+memberof+attributeHow do you set the "memberof" attribute <p>OK here's the deal I can set all the other properties and create the account.&nbsp; However, I can't set the &quot;memberof&quot; attribute.</p> <pre class="prettyprint">users.Properties[&quot;memberof&quot;].Value = &quot;CN=dkdkd,DC=dkdk etc...&quot;</pre> <pre class="prettyprint">&nbsp;</pre> <pre class="prettyprint">As I understand the "memberof" attribute is a "backlinked" property (read-only) and has to be set using another method. </pre> <pre class="prettyprint">Can someone show an example as to how this is set</pre> 2011-06-28T16:19:24-04:004482131http://forums.asp.net/p/1694732/4482131.aspx/1?Re+How+do+you+set+the+memberof+attributeRe: How do you set the "memberof" attribute <p>You have to add the user to an active directory grou. You cannot edit it here</p> <p><a href="http://www.dotnettreats.com/tipstricks/adnet.aspx">http://www.dotnettreats.com/tipstricks/adnet.aspx</a></p> 2011-06-28T17:19:53-04:004482467http://forums.asp.net/p/1694732/4482467.aspx/1?Re+How+do+you+set+the+memberof+attributeRe: How do you set the "memberof" attribute <p>You will need to search for the group and then add the user to it using the user's Distinguished name.</p> <p>You can see examples for this and other things here, <a href="http://www.codeproject.com/KB/system/everythingInAD.aspx"> http://www.codeproject.com/KB/system/everythingInAD.aspx</a></p> 2011-06-28T23:33:02-04:004482684http://forums.asp.net/p/1694732/4482684.aspx/1?Re+How+do+you+set+the+memberof+attributeRe: How do you set the "memberof" attribute <p>You have to add the user's distinguishedname to the member attribute.</p> <p>Try this...</p> <p></p> <p><span>groupEntry</span><span class="pun">.</span><span class="typ">Properties</span><span class="pun">[</span><span class="str">&quot;member&quot;</span><span class="pun">].</span><span class="typ"></span><span class="pln">Add(</span><span class="pun"></span><span class="pln"> </span>&quot;CN=dkdkd,DC=dkdk&quot;);</p> <pre class="prettyprint">Regards, Tamilmani.</pre> 2011-06-29T04:45:29-04:00