<div dir="ltr"><div>Thanks. Referring to dtd, I need to add<br><br>  &lt;user&gt;<br>    &lt;uid&gt;gauravj&lt;/uid&gt;<br>    &lt;guid&gt;gauravj&lt;/guid&gt;<br>    &lt;email-address&gt;<a href="mailto:gauravj@example.com">gauravj@example.com</a>&lt;/email-address&gt;<br>    &lt;password&gt;test&lt;/password&gt;<br>    &lt;name&gt;Gaurav Jain&lt;/name&gt;<br>    &lt;first-name&gt;Gaurav&lt;/first-name&gt;<br>    &lt;last-name&gt;Jain&lt;/last-name&gt;<br>    &lt;members&gt;<br>      &lt;member type=&quot;groups&quot;&gt;group01&lt;/member&gt;<br>    &lt;/members&gt;<br>  &lt;/user&gt;<br><br><br></div><div>That means just creating a group with members is not sufficient. Needed to explicitly specify which<br><br></div><div>* which members a group has<br></div><div>* which groups a user belong to.<br><br></div><div>I hope my understanding is correct.<br><br><br></div><div>Regards,</div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 5, 2014 at 12:22 PM, Andre LaBranche <span dir="ltr">&lt;<a href="mailto:dre@apple.com" target="_blank">dre@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>To check your accounts.xml configuration, probably the best documentation is:</div><div><br></div><div><a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts-test.xml" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts-test.xml</a></div><div><br></div><div>and</div><div><br></div><div><a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts.dtd" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts.dtd</a></div><div><br></div><div>-dre</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Dec 5, 2014, at 12:15 PM, Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com" target="_blank">monkeyfdude@gmail.com</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div>I did try that:<br><br></div><div>For <a href="http://localhost:8008/principals/groups/group01/" target="_blank">http://localhost:8008/principals/groups/group01/</a><br><br><pre>Group members:
 -&gt; <a href="http://localhost:8008/principals/__uids__/cdaboo/" target="_blank">(users)cdaboo - Cyrus Daboo</a>
 -&gt; <a href="http://localhost:8008/principals/__uids__/sagen/" target="_blank">(users)sagen - Morgen Sagen</a><br><br><br>For <a href="http://localhost:8008/principals/users/cdaboo/" target="_blank">http://localhost:8008/principals/users/cdaboo/</a><br><br>Group members:
 &#39;()

Group memberships:
 &#39;()<br><br><br></pre><pre>I only specified &#39;members&#39; in a &#39;group&#39;.<br><br></pre><pre>Do I also need to specify &#39;memberships&#39; for a &#39;user&#39;?<br><br></pre><pre>Could you also please point me to any doc around this?<br><br><br></pre><pre>Thanks again!<br></pre><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 5, 2014 at 12:10 PM, Cyrus Daboo <span dir="ltr">&lt;<a href="mailto:cdaboo@apple.com" target="_blank">cdaboo@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gaurav,<div><div><br>
<br>
--On December 5, 2014 at 11:51:11 AM -0800 Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com" target="_blank">monkeyfdude@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve set up a group consisting of two members.<br>
<br>
  &lt;group&gt;<br>
    &lt;uid&gt;testGroup&lt;/uid&gt;<br>
    &lt;password&gt;testGroup&lt;/password&gt;<br>
    &lt;name&gt;Test Group&lt;/name&gt;<br>
    &lt;members&gt;<br>
      &lt;member type=&quot;users&quot;&gt;cdaboo&lt;/member&gt;<br>
      &lt;member type=&quot;users&quot;&gt;sagen&lt;/member&gt;<br>
    &lt;/members&gt;<br>
    &lt;guid&gt;734BB9B0&lt;/guid&gt;<br>
  &lt;/group&gt;<br>
<br>
<br>
On the client, I need to know which groups user &#39;cdaboo&#39; belongs to?<br>
<br>
I tried &#39;allprop&#39; for &#39;/principals/users/cdaboo/&#39; but it did not return<br>
any group.<br>
</blockquote>
<br></div></div>
Pull up /principals/users/xxxx/ in a web browser. You should see a DAV:membership property listing the groups that principal is a member of. Note that &quot;allprop&quot; does not return all properties! Some properties are explicitly defined to not appear in &quot;allprop&quot;.<span><font color="#888888"><br>
<br>
-- <br>
Cyrus Daboo<br>
<br>
</font></span></blockquote></div><br></div></div></div>
_______________________________________________<br>calendarserver-users mailing list<br><a href="mailto:calendarserver-users@lists.macosforge.org" target="_blank">calendarserver-users@lists.macosforge.org</a><br><a href="https://lists.macosforge.org/mailman/listinfo/calendarserver-users" target="_blank">https://lists.macosforge.org/mailman/listinfo/calendarserver-users</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>