<?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 custom configuration for consumer role to a site in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294198#M247328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my site all user require Collaborative role actually its consumer , so i added a configuration like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;permissionSet type="st:site" expose="selected"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;permissionGroup name="SiteManager" allowFullControl="true" expose="true" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;permissionGroup name="SiteCollaborator" allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt; &amp;lt;includePermissionGroup permissionGroup="Collaborator" type="cm:cmobject" /&amp;gt;&lt;BR /&gt; &amp;lt;/permissionGroup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;permissionGroup name="SiteContributor" allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt; &amp;lt;includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" /&amp;gt;&lt;BR /&gt; &amp;lt;/permissionGroup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;permissionGroup name="SiteConsumer" allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;lt;includePermissionGroup permissionGroup="Collaborator" type="cm:cmobject" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;/permissionGroup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;permissionGroup name="SiteCommentator" allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt; &amp;lt;includePermissionGroup permissionGroup="Consumer" type="cm:cmobject" /&amp;gt;&lt;BR /&gt; &amp;lt;includePermissionGroup permissionGroup="ReadPermissions" type="sys:base" /&amp;gt;&lt;BR /&gt; &amp;lt;/permissionGroup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/permissionSet&amp;gt;&lt;/P&gt;&lt;P&gt;in &amp;nbsp;alfresco-community\tomcat\shared\classes\alfresco\extension\sitePermissionDefinitions.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its still access denied for some operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if there is any other way, please let me know with sample codes&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 15:10:33 GMT</pubDate>
    <dc:creator>nareshvy</dc:creator>
    <dc:date>2016-12-07T15:10:33Z</dc:date>
    <item>
      <title>custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294198#M247328</link>
      <description>Hi ,&amp;nbsp;In my site all user require Collaborative role actually its consumer , so i added a configuration like this&amp;nbsp;&amp;lt;permissionSet type="st:site" expose="selected"&amp;gt;&amp;lt;permissionGroup name="SiteManager" allowFullControl="true" expose="true" /&amp;gt;&amp;lt;permissionGroup name="SiteCollaborator" allowFu</description>
      <pubDate>Wed, 07 Dec 2016 15:10:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294198#M247328</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-07T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294199#M247329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also need to bootstrap your permission model ,please refer to &lt;A href="http://docs.alfresco.com.cn/4.2/concepts/dev-extensions-modules-custom-permission-model.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com.cn/4.2/concepts/dev-extensions-modules-custom-permission-model.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That means you need add an spring definition file in your alfresco-community\tomcat\shared\classes\alfresco\extension folder ,for example site-custom-context.xml and &amp;nbsp;paste following content into your site-custom-context.xml&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt; &amp;lt;bean id="siteService_permissionBootstrap" parent="permissionModelBootstrap"&amp;gt;&lt;BR /&gt; &amp;lt;property name="model" value="sitePermissionDefinitions.xml"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 19:55:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294199#M247329</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-07T19:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294200#M247330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you kayne,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created site-custom-context.xml and &amp;nbsp;place it in alfresco-community\tomcat\shared\classes\alfresco\extension\ and&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;sitePermissionDefinitions.xml two files but its getting error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt; Exception calling (POST) &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8090/alfresco/s/remoteadm/update/alfresco/site-data/module-deployments/Aikau%201.0.63%20Config%20Module.xml?s=sitestore" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8090/alfresco/s/remoteadm/update/alfresco/site-data/module-deployments/Aikau%201.0.63%20Config%20Module.xml?s=sitestore&lt;/A&gt;&lt;BR /&gt;2016-12-08 09:59:41,674 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] [http-apr-8090-exec-4] Error status 500 Connection reset&lt;BR /&gt;java.net.SocketException: Connection reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;or please provide sample code for how creating groups, assign user to group &amp;nbsp;and giving permission to &amp;nbsp;groups using restful api or cmis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 06:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294200#M247330</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-08T06:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294201#M247331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ERROR [org.springframework.web.context.ContextLoader] [localhost-startStop-1] Context initialization failed&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteService_permissionBootstrap' defined in file [D:\alfresco-community\tomcat\shared\classes\alfresco\extension\site-custom-context.xml]: Invocation of init method failed; nested exception is org.alfresco.repo.security.permissions.impl.model.PermissionModelException: 11080000 Failed to create permission model document: alfresco\extension\sitePermissionDefinitions.xml at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)&lt;BR /&gt;.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)&lt;BR /&gt; at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)&lt;BR /&gt; at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)&lt;BR /&gt; at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)&lt;BR /&gt; at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)&lt;BR /&gt; at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)&lt;BR /&gt; at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)&lt;BR /&gt; at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)&lt;BR /&gt; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)&lt;BR /&gt; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)&lt;BR /&gt; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)&lt;BR /&gt; at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)&lt;BR /&gt; at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1859)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(Unknown Source)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)&lt;BR /&gt; at java.lang.Thread.run(Unknown Source)&lt;BR /&gt;Caused by: org.alfresco.repo.security.permissions.impl.model.PermissionModelException: 11080000 Failed to create permission model document: alfresco\extension\sitePermissionDefinitions.xml&lt;BR /&gt; at org.alfresco.repo.security.permissions.impl.model.PermissionModel.createDocument(PermissionModel.java:1328)&lt;BR /&gt; at org.alfresco.repo.security.permissions.impl.model.PermissionModel.addPermissionModel(PermissionModel.java:1217)&lt;BR /&gt; at org.alfresco.repo.security.permissions.impl.model.PermissionModelBootstrap.init(PermissionModelBootstrap.java:60)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1640)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1581)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)&lt;BR /&gt; ... 26 more&lt;BR /&gt;Caused by: org.dom4j.DocumentException: Error on line 6 of document : Invalid byte 1 of 1-byte UTF-8 sequence. Nested exception: Invalid byte 1 of 1-byte UTF-8 sequence.&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 06:42:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294201#M247331</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-08T06:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294202#M247332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally I got succeed , thank you Kayne&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 07:10:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294202#M247332</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-08T07:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294203#M247333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your&amp;nbsp;sitePermissionDefinitions.xml is not an invalid xml file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;Caused by: org.dom4j.DocumentException: Error on line 6 of document : Invalid byte 1 of 1-byte UTF-8 sequence. Nested exception: Invalid byte 1 of 1-byte UTF-8 sequence.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 07:11:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294203#M247333</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-08T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294204#M247334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you I fixed the issue...&lt;/P&gt;&lt;P&gt;please provide sample code for create a group and assign user to the group using java related&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 09:54:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294204#M247334</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-08T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294205#M247335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import org.apache.commons.httpclient.HttpClient;&lt;BR /&gt;import org.apache.commons.httpclient.HttpStatus;&lt;BR /&gt;import org.apache.commons.httpclient.UsernamePasswordCredentials;&lt;BR /&gt;import org.apache.commons.httpclient.auth.AuthScope;&lt;BR /&gt;import org.apache.commons.httpclient.methods.GetMethod;&lt;BR /&gt;import org.apache.commons.httpclient.methods.PostMethod;&lt;BR /&gt;import org.apache.commons.httpclient.methods.StringRequestEntity;&lt;BR /&gt;import org.json.JSONObject;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public static void main(String[] args) {&lt;BR /&gt; WebScriptExample exmple = new WebScriptExample();&lt;BR /&gt; HttpClient client = exmple.getHttpClient();&lt;BR /&gt; &lt;BR /&gt; exmple.addGroupOrUserToGroup(client);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;private void addGroupOrUserToGroup(HttpClient client) {&lt;BR /&gt;&lt;SPAN&gt; String apiurl ="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/s/api/groups/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/s/api/groups/&lt;/A&gt;&lt;SPAN&gt;{parent group name}/children/{user name or sub group name}";&lt;/SPAN&gt;&lt;BR /&gt; PostMethod post = new PostMethod(apiurl);&lt;BR /&gt; try {&lt;/P&gt;&lt;P&gt;post.setDoAuthentication(true);&lt;BR /&gt; post.setRequestHeader("Content-Type", "application/json");&lt;/P&gt;&lt;P&gt;int status = client.executeMethod(post);&lt;BR /&gt; if (status != HttpStatus.SC_OK) {&lt;BR /&gt; System.err.println("Method failed: " + post.getStatusLine());&lt;BR /&gt; }&lt;BR /&gt; String resultString = post.getResponseBodyAsString();&lt;BR /&gt; System.out.println(resultString);&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; } finally {&lt;BR /&gt; post.releaseConnection();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; private HttpClient getHttpClient() {&lt;BR /&gt; HttpClient client = new HttpClient();&lt;BR /&gt; client.getState().setCredentials(&lt;BR /&gt; new AuthScope("localhost", 8080, "Alfresco"),&lt;BR /&gt; new UsernamePasswordCredentials("admin", "admin"));&lt;BR /&gt; return client;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;Please note that if add sub group ,it's name should be prefix with GROUP_&lt;/P&gt;&lt;P&gt;for example add a sub group named subGroup1 to parent group named parentGroup,you url should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;String apiurl ="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/s/api/groups/parentGroup/children/GROUP_sub" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/s/api/groups/parentGroup/children/GROUP_sub&lt;/A&gt;&lt;SPAN&gt;G&lt;/SPAN&gt;&lt;SPAN&gt;roup1 &lt;/SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 12:41:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294205#M247335</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-08T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294206#M247336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,I am trying &amp;nbsp;this example, but i got this errors&lt;/P&gt;&lt;P&gt;Method failed: HTTP/1.1 405 Method Not Allowed&lt;/P&gt;&lt;P&gt;Web Script Status 405 - Method Not Allowed&lt;/P&gt;&lt;P&gt;Script url /api/groups/CBGroupTest does not support the method POST&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the url: String apiurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I gave like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 04:19:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294206#M247336</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T04:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294207#M247337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your url is not complete :&lt;/P&gt;&lt;P&gt;if you want to add an user to group&amp;nbsp;&lt;SPAN&gt;CBGroupTest,the url should be like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;String apiurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest/children/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest/children/&lt;/A&gt;&lt;SPAN&gt;{userName}";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you want to add an subgroup to group&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CBGroupTest,the url should be like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;String apiurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest/&lt;/A&gt;&lt;SPAN&gt;children/{GROUP_groupName}&lt;/SPAN&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 04:54:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294207#M247337</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-09T04:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294208#M247338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you kayne,&lt;/P&gt;&lt;P&gt;I trying to create group ,once then later while creating user i have to add user to group , this is my scenario,&lt;/P&gt;&lt;P&gt;now i am trying to create group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;String apiurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest/children/Group_CBGroupTest" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/api/groups/CBGroupTest/children/Group_CBGroupTest&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;right now no user to that group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so its getting error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The group :CBGroupTest, does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 05:14:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294208#M247338</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T05:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294209#M247339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If&amp;nbsp;you want to add sub group(CBGroupTest) to a parent group (CBGroupTest) , parent group&amp;nbsp;CBGroupTest should exist.&lt;/P&gt;&lt;P&gt;Ifyou want to add root group please use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String apiurl ="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8090/alfresco/s/api/rootgroups/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8090/alfresco/s/api/rootgroups/&lt;/A&gt;&lt;SPAN&gt;{your root group name}";&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 05:37:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294209#M247339</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-09T05:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294210#M247340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you kayne&lt;/P&gt;&lt;P&gt;getting error&lt;/P&gt;&lt;P&gt;private void addGroupOrUserToGroup(HttpClient client) throws JSONException {&lt;BR /&gt;&lt;SPAN&gt; String apiurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/api/rootgroups/CBGroup" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/api/rootgroups/CBGroup&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt; PostMethod post = new PostMethod(apiurl);&lt;BR /&gt; try {&lt;BR /&gt; post.setDoAuthentication(true);&lt;BR /&gt; post.setRequestHeader("Content-Type", "application/json");&lt;BR /&gt; int status = client.executeMethod(post);&lt;BR /&gt; if (status != HttpStatus.SC_OK) {&lt;BR /&gt; System.err.println("Method failed: " + post.getStatusLine());&lt;BR /&gt; }&lt;BR /&gt; String resultString = post.getResponseBodyAsString();&lt;BR /&gt; System.out.println(resultString);&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; } finally {&lt;BR /&gt; post.releaseConnection();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"status" : &lt;BR /&gt; {&lt;BR /&gt; code" : 500,&lt;BR /&gt; "name" : "Internal Error",&lt;BR /&gt; "description" : "An error inside the HTTP server which prevented it from fulfilling the request."&lt;BR /&gt; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 05:55:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294210#M247340</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T05:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294211#M247341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to add following line in bold to your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void addGroupOrUserToGroup(HttpClient client) throws JSONException {&lt;BR /&gt;&lt;SPAN&gt;String apiurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/api/rootgroups/CBGroup" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/api/rootgroups/CBGroup&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;PostMethod post = new PostMethod(apiurl);&lt;BR /&gt;try {&lt;BR /&gt; &lt;STRONG&gt;JSONObject body = new JSONObject();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; body.put("displayName", "CBGroup");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;post.setDoAuthentication(true);&lt;BR /&gt;post.setRequestHeader("Content-Type", "application/json");&lt;BR /&gt;&lt;STRONG&gt;post.setRequestEntity(new StringRequestEntity(body.toString(),"application/json", "UTF-8"));&lt;/STRONG&gt;&lt;BR /&gt;int status = client.executeMethod(post);&lt;BR /&gt;if (status != HttpStatus.SC_OK) {&lt;BR /&gt;System.err.println("Method failed: " + post.getStatusLine());&lt;BR /&gt;}&lt;BR /&gt;String resultString = post.getResponseBodyAsString();&lt;BR /&gt;System.out.println(resultString);&lt;BR /&gt;} catch (Exception e) {&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;} finally {&lt;BR /&gt;post.releaseConnection();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 06:59:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294211#M247341</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-09T06:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294212#M247342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Very Much, Kayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:06:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294212#M247342</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294213#M247343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I creating user in this method&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;String urlString = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/service/api/people?alf_ticket=" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/service/api/people?alf_ticket=&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; + authTicket;&lt;BR /&gt; System.out.println("The addUser url:::" + urlString);&lt;BR /&gt; HttpClient client = new HttpClient();&lt;/P&gt;&lt;P&gt;PostMethod mPost = new PostMethod(urlString);&lt;BR /&gt; UserDetails objUserDetails = new UserDetails();&lt;BR /&gt; objUserDetails.setUserName(userdetailobj.getUserName());&lt;BR /&gt; objUserDetails.setPassword(userdetailobj.getPassword());&lt;BR /&gt; objUserDetails.setFirstName(userdetailobj.getFirstName());&lt;BR /&gt; objUserDetails.setLastName(userdetailobj.getLastName());&lt;BR /&gt; objUserDetails.setEmail(userdetailobj.getEmail());&lt;/P&gt;&lt;P&gt;//groups[0]="CBGroup";&amp;nbsp;&lt;BR /&gt; objUserDetails.setGroups(group);&lt;BR /&gt;objUserDetails.setQuota(quota);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StringRequestEntity requestEntity = new StringRequestEntity(&lt;BR /&gt; getJSONString(objUserDetails), "application/json", "UTF-8");&lt;BR /&gt; mPost.setRequestEntity(requestEntity);&lt;BR /&gt; int statusCode1 = client.executeMethod(mPost);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, trying to add this user into &amp;nbsp;CBGroup and how to add CBGroup to CBSite&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:10:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294213#M247343</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294214#M247344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kayne, I Succes fully added user to group ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to know How Groups are adding to site&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:17:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294214#M247344</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T07:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294215#M247345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About webscript api ,please visit&amp;nbsp;&lt;A class="link-titled" href="http://localhost:8080/alfresco/s/index/package/org/alfresco/repository/site/membership" title="http://localhost:8080/alfresco/s/index/package/org/alfresco/repository/site/membership" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/index/package/org/alfresco/repository/site/membership&lt;/A&gt;&amp;nbsp; and login with admin accout. how to add member to site&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/11482_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:34:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294215#M247345</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-12-09T07:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294216#M247346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you keyne,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;String apiurl1 = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://127.0.0.1:8090/alfresco/s/sites/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8090/alfresco/s/sites/&lt;/A&gt;&lt;SPAN&gt;"+siteName+"/memberships";&lt;/SPAN&gt;&lt;BR /&gt; PostMethod post1 = new PostMethod(apiurl1);&lt;BR /&gt; JSONObject body1 = new JSONObject();&lt;BR /&gt; body1.put("shortName", groupName);&lt;BR /&gt; body1.put("displayName", groupName);&lt;BR /&gt;body1.put("displayName", groupName);&lt;BR /&gt;body1.put("site","site_"+siteName);&lt;BR /&gt; &lt;BR /&gt; post1.setDoAuthentication(true);&lt;BR /&gt; post1.setRequestHeader("Content-Type", "application/json");&lt;BR /&gt; post1.setRequestEntity(new StringRequestEntity(body1.toString(),"application/json", "UTF-8"));&lt;BR /&gt; int status1 = client.executeMethod(post1);&lt;/P&gt;&lt;P&gt;getting error&lt;/P&gt;&lt;P&gt;&amp;nbsp;has responded with a status of 404 - Not Found&lt;/P&gt;&lt;P&gt;&amp;nbsp;Script url /sites/TESTDAM/memberships does not map to a Web Script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 09:21:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294216#M247346</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-09T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: custom configuration for consumer role to a site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294217#M247347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How ? I have the same error&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 15:02:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-configuration-for-consumer-role-to-a-site/m-p/294217#M247347</guid>
      <dc:creator>gildo</dc:creator>
      <dc:date>2016-12-09T15:02:29Z</dc:date>
    </item>
  </channel>
</rss>

