<?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: Rest Api create user and assign it to a group in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-user-and-assign-it-to-a-group/m-p/102229#M29247</link>
    <description>&lt;P&gt;You can use below rest api for creating user and allocate an already available group to the user (Note that these APIs will work only for admin roles):&lt;/P&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="http://127.0.0.1:8080/alfresco/service/api/people/" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SAMP class="ph codeph"&gt;POST /alfresco/service/api/people&lt;/SAMP&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;
&lt;DIV class="section refsyn"&gt;
&lt;DIV class="p"&gt;
&lt;DL class="dl"&gt;
&lt;DT class="dt dlterm"&gt;userName&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the user name for the new user&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;firstName&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the given Name&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;lastName&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the family name&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;email&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the email address&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;password&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the new user's password. If not specified then a value of "password" is used which should be changed as soon as possible.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;disableAccount&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - If present and set to "true" the user is created but their account will be disabled.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;quota&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - Sets the quota size for the new user, in bytes.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;groups&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - Array of group names to assign the new user to.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;title&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the title for the new user.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;organisation&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the organisation the new user belongs to.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;jobtitle&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the job title of the new user.&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;The web script description document specifies the following options:&lt;/DIV&gt;
&lt;TABLE class="simpletable properties" border="1" summary="" cellspacing="0" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH id="d495873e183-value" align="left" valign="bottom"&gt;Value&lt;/TH&gt;
&lt;TH id="d495873e183-desc" align="left" valign="bottom"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;json&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The default response format&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;admin&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The authentication access&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;required&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The transaction level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;argument&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The format style&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV class="p"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p"&gt;Additionally, you can add user to a group using below given rest api:&lt;/DIV&gt;
&lt;DIV class="p"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/5.0/references/RESTful-GroupsChildrenPost.html" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SAMP class="ph codeph"&gt;POST /alfresco/service/api/groups/{shortName}/children/{fullAuthorityName}&lt;/SAMP&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;STRONG&gt;Note that, you should have admin access to the repository in order to execute these rest apis.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;U&gt;&lt;STRONG&gt;Alternatively, you can use these &lt;A href="https://docs.alfresco.com/content-services/6.0/develop/rest-api-guide/people-groups/" target="_self" rel="nofollow noopener noreferrer"&gt;V1 rest apis&lt;/A&gt;:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;EM&gt;&lt;A href="https://docs.alfresco.com/6.2/concepts/dev-api-by-language-alf-rest-manage-people-groups-create-person.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#createperson&lt;/A&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#creategroup" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#creategroup&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updateperson" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updateperson&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updategroup" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updategroup&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;If you have something very specific requirement, you can develop your own webscript to add/updated user/group.&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;Check this post:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/create-new-users-without-admin-rights/m-p/294747/highlight/true#M17123" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/create-new-users-without-admin-rights/m-p/294747/highlight/true#M17123&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Aug 2020 14:36:20 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2020-08-18T14:36:20Z</dc:date>
    <item>
      <title>Rest Api create user and assign it to a group</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-user-and-assign-it-to-a-group/m-p/102228#M29246</link>
      <description>&lt;P&gt;Hi everyone ,&lt;/P&gt;&lt;P&gt;Is it possible to create an user and assign it to a group in alfresco 5.2?&lt;/P&gt;&lt;P&gt;thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 13:23:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-user-and-assign-it-to-a-group/m-p/102228#M29246</guid>
      <dc:creator>houssam97</dc:creator>
      <dc:date>2020-08-18T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Api create user and assign it to a group</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-user-and-assign-it-to-a-group/m-p/102229#M29247</link>
      <description>&lt;P&gt;You can use below rest api for creating user and allocate an already available group to the user (Note that these APIs will work only for admin roles):&lt;/P&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="http://127.0.0.1:8080/alfresco/service/api/people/" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SAMP class="ph codeph"&gt;POST /alfresco/service/api/people&lt;/SAMP&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;
&lt;DIV class="section refsyn"&gt;
&lt;DIV class="p"&gt;
&lt;DL class="dl"&gt;
&lt;DT class="dt dlterm"&gt;userName&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the user name for the new user&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;firstName&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the given Name&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;lastName&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the family name&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;email&lt;/DT&gt;
&lt;DD class="dd"&gt;mandatory - the email address&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;password&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the new user's password. If not specified then a value of "password" is used which should be changed as soon as possible.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;disableAccount&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - If present and set to "true" the user is created but their account will be disabled.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;quota&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - Sets the quota size for the new user, in bytes.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;groups&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - Array of group names to assign the new user to.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;title&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the title for the new user.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;organisation&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the organisation the new user belongs to.&lt;/DD&gt;
&lt;DT class="dt dlterm"&gt;jobtitle&lt;/DT&gt;
&lt;DD class="dd"&gt;optional - the job title of the new user.&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;The web script description document specifies the following options:&lt;/DIV&gt;
&lt;TABLE class="simpletable properties" border="1" summary="" cellspacing="0" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH id="d495873e183-value" align="left" valign="bottom"&gt;Value&lt;/TH&gt;
&lt;TH id="d495873e183-desc" align="left" valign="bottom"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;json&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The default response format&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;admin&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The authentication access&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;required&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The transaction level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;argument&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The format style&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV class="p"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p"&gt;Additionally, you can add user to a group using below given rest api:&lt;/DIV&gt;
&lt;DIV class="p"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p"&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/5.0/references/RESTful-GroupsChildrenPost.html" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SAMP class="ph codeph"&gt;POST /alfresco/service/api/groups/{shortName}/children/{fullAuthorityName}&lt;/SAMP&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;STRONG&gt;Note that, you should have admin access to the repository in order to execute these rest apis.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;U&gt;&lt;STRONG&gt;Alternatively, you can use these &lt;A href="https://docs.alfresco.com/content-services/6.0/develop/rest-api-guide/people-groups/" target="_self" rel="nofollow noopener noreferrer"&gt;V1 rest apis&lt;/A&gt;:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;EM&gt;&lt;A href="https://docs.alfresco.com/6.2/concepts/dev-api-by-language-alf-rest-manage-people-groups-create-person.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#createperson&lt;/A&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#creategroup" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#creategroup&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updateperson" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updateperson&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updategroup" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/rest-api-guide/people-groups/#updategroup&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;If you have something very specific requirement, you can develop your own webscript to add/updated user/group.&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;Check this post:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/create-new-users-without-admin-rights/m-p/294747/highlight/true#M17123" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/create-new-users-without-admin-rights/m-p/294747/highlight/true#M17123&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:36:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-create-user-and-assign-it-to-a-group/m-p/102229#M29247</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-18T14:36:20Z</dc:date>
    </item>
  </channel>
</rss>

