<?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 java client: addUserToGroup / attachGroupToUser functions in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-addusertogroup-attachgrouptouser-functions/m-p/318121#M5122</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i'm trying to add several users to a group using java client but it doesnt work.The users and the group are already created.&lt;/P&gt;
&lt;P&gt;The functions i have tried for this are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;org.nuxeo.client.object.user.UserManager.addUserToGroup&lt;/LI&gt;
&lt;LI&gt;org.nuxeo.client.object.user.UserManager.attachGroupToUser&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;can anyone help me?&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 15:14:22 GMT</pubDate>
    <dc:creator>Iago_Iglesias_Á</dc:creator>
    <dc:date>2018-03-20T15:14:22Z</dc:date>
    <item>
      <title>java client: addUserToGroup / attachGroupToUser functions</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-addusertogroup-attachgrouptouser-functions/m-p/318121#M5122</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i'm trying to add several users to a group using java client but it doesnt work.The users and the group are already created.&lt;/P&gt;
&lt;P&gt;The functions i have tried for this are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;org.nuxeo.client.object.user.UserManager.addUserToGroup&lt;/LI&gt;
&lt;LI&gt;org.nuxeo.client.object.user.UserManager.attachGroupToUser&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;can anyone help me?&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:14:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-client-addusertogroup-attachgrouptouser-functions/m-p/318121#M5122</guid>
      <dc:creator>Iago_Iglesias_Á</dc:creator>
      <dc:date>2018-03-20T15:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: java client: addUserToGroup / attachGroupToUser functions</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-client-addusertogroup-attachgrouptouser-functions/m-p/318122#M5123</link>
      <description>&lt;P&gt;You can add groups to a user by setting the user groups field in the User:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// Get the user groups that they already have
ArrayList&amp;lt;String&amp;gt; userGroups = (ArrayList&amp;lt;String&amp;gt;) user.getProperty("user", "groups");
// Add another group
userGroups.add("some_group_name_that_already_exists");
// Set the groups via user schema, fieldname: groups
user.setProperty("user", "groups", userGroups);
userManager.updateUser(user);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does that work for you?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 12:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-client-addusertogroup-attachgrouptouser-functions/m-p/318122#M5123</guid>
      <dc:creator>Jackie_A</dc:creator>
      <dc:date>2018-04-06T12:49:47Z</dc:date>
    </item>
  </channel>
</rss>

