<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Are there any examples of using groups and then doing SetACE operation ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326845#M13846</link>
    <description>&lt;P&gt;There is no Group creation operation, neither user creation operation. You will have to create your own operation with Nuxeo IDE.&lt;/P&gt;
&lt;P&gt;There is a Nuxeo Service that manage users and groups.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    UserManager userManager = Framework.getService(UserManager.class);
    if (userManager == null) {
        throw new Exception("unable to get userManager service");
    }
   DocumentModel newUser = userManager.getBareUserModel();
   ... initialize values ...
   userManager.createUser(newUser)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;idem for groups.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   DocumentModel newGroup = userManager.getBareGroupModel();
   ... initialize values ...
   userManager.createGroup(newGroup)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;see user.xsd schema and group schema for field names.&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2012 18:30:00 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2012-09-21T18:30:00Z</dc:date>
    <item>
      <title>Are there any examples of using groups and then doing SetACE operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326842#M13843</link>
      <description>&lt;P&gt;We are planning to use groups to set the domain permissions for a group of users. Are there any examples on how to create a group and then call the SetACE for a group instead of a user ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 17:34:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326842#M13843</guid>
      <dc:creator>smalis_</dc:creator>
      <dc:date>2012-09-21T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any examples of using groups and then doing SetACE operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326843#M13844</link>
      <description>&lt;P&gt;Did you try. It must work... Did you have some trouble ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 18:00:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326843#M13844</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-21T18:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any examples of using groups and then doing SetACE operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326844#M13845</link>
      <description>&lt;P&gt;I mean how to create to group using nuxeo operation. I can see it being done using Admin tool but how to do it using nuxeo operation by REST call.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 18:22:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326844#M13845</guid>
      <dc:creator>smalis_</dc:creator>
      <dc:date>2012-09-21T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any examples of using groups and then doing SetACE operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326845#M13846</link>
      <description>&lt;P&gt;There is no Group creation operation, neither user creation operation. You will have to create your own operation with Nuxeo IDE.&lt;/P&gt;
&lt;P&gt;There is a Nuxeo Service that manage users and groups.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    UserManager userManager = Framework.getService(UserManager.class);
    if (userManager == null) {
        throw new Exception("unable to get userManager service");
    }
   DocumentModel newUser = userManager.getBareUserModel();
   ... initialize values ...
   userManager.createUser(newUser)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;idem for groups.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   DocumentModel newGroup = userManager.getBareGroupModel();
   ... initialize values ...
   userManager.createGroup(newGroup)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;see user.xsd schema and group schema for field names.&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 18:30:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326845#M13846</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-21T18:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any examples of using groups and then doing SetACE operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326846#M13847</link>
      <description>&lt;P&gt;But how do we set permissions to a group ? Can we use setACE for a group instead of a user ?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:34:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326846#M13847</guid>
      <dc:creator>smalis_</dc:creator>
      <dc:date>2012-09-24T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any examples of using groups and then doing SetACE operation ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326847#M13848</link>
      <description>&lt;P&gt;Just put the group name&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 17:42:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/are-there-any-examples-of-using-groups-and-then-doing-setace/m-p/326847#M13848</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-26T17:42:43Z</dc:date>
    </item>
  </channel>
</rss>

