JBoss.orgCommunity Documentation

Grant all new users access to toolbar and CMS

If all users require access to both the toolbar and the underlying CMS implementation, administrators can change the default portal behavior to grant the appropriate permissions to newly registered users:

1. Do the same as Step 1 and Step 2 of "Grant all users access to toolbar but not CMS".

2. Edit the organization-configuration.xml file and add /platform/web-contributors to wcm.new.user.event.listener. See the example below:



<component-plugin>
      <name>wcm.new.user.event.listener</name>
      <set-method>addListenerPlugin</set-method>
      <type>org.exoplatform.services.organization.impl.NewUserEventListener</type>
      <description>this listener assign group and membership to a new created user</description>
      <init-params>
        <object-param>
          <name>configuration</name>
          <description>description</description>
          <object type="org.exoplatform.services.organization.impl.NewUserConfig">
            <field name="group">
              <collection type="java.util.ArrayList">
                <value>
                  <object type="org.exoplatform.services.organization.impl.NewUserConfig$JoinGroup">
                    <field name="groupId"><string>/platform/users</string></field>
                    <field name="membership"><string>member</string></field>
                  </object>
                </value>
                <!-- new users should also be a member of the web-contributors group to see the top toolbar -->
                <value>
                  <object type="org.exoplatform.services.organization.impl.NewUserConfig$JoinGroup">
                    <field name="groupId"><string>/platform/web-contributors</string></field>
                    <field name="membership"><string>member</string></field>
                  </object>
                </value>
              </collection>
            </field>
            <field name="ignoredUser">
              <collection type="java.util.HashSet">
                <value><string>james</string></value>
              </collection>
            </field>
          </object>
        </object-param>
      </init-params>
</component-plugin>

3. Restart the server.