Administering community content
You can create a dedicated administrator with access to all communities, public, or restricted. This administrator has granular control over communities content, including the ability to edit or remove inappropriate content. This administrator is also required for HCL Sametime® integration with HCL Connections.
Global communities administrators can access all communities with rights to view and update community settings, members, invitations, bookmarks, and feeds. However, within restricted communities the global administrator cannot view and manage remote widget applications, such as Activities or Wikis. To manage content in remote widget applications, you add the communities global administrator to the Java EE admin role for all of these applications. See Assigning people to Java EE roles for detailed information. Once logged in, the communities global administrator is in the admin role and can manage content in any of them, whether the applications are stand-alone or remote widgets in a community.
You can use search to find private communities, but you must add the global administrator to the search-admin role of the Search application. Use the My Organization Communities view to find public and moderated communities.
Note: The global administrator role is not supported on mobile devices. Global administrators must use a supported browser.
-
Create a user who is dedicated to administering content, and add them to the Java EE admin role of Communities, Activities, Blogs, Files, Forums, and Wikis. Also, add them to the search-admin role of Search. See Roles.
In the following steps, ensure that communities-policy.xml contains the "admin" block of grant statements and is not commented out.
-
Start the wsadmin client by completing the following steps:
-
Open a command prompt and then change to the following directory of the system on which you installed the deployment manager:
app_server_root/profiles/dm_profile_root/bin
app_server_root/profiles/dm_profile_root/bin. Where app_server_root represents the IBM WebSphere Application Server installation directory, for example:
Linux: /opt/IBM/WebSphere/AppServer
Windows: drive:\Program Files\IBM\WebSphere\AppServer
Where drive is the system drive on which the file directory is stored. For example: C: or D:.
where dm_profile_root is the Deployment Manager profile directory; this directory is usually called dmgr01. For example, on Windows, the directory is C:\Program Files\IBM\WebSphere\AppServer\profiles\Dmgr01\bin.
Attention: You must run the command to start the wsadmin client from this specific directory because the Jython files for the product are stored there. If you start the client from a different directory, the execfile() command does not work correctly.
-
Enter the following command to start the wsadmin client:
- Linux: ./wsadmin.sh -lang jython -user admin_user_id -password admin_password -port SOAP_CONNECTOR_ADDRESS_PORT
-
Microsoft Windows: wsadmin -lang jython -user admin_user_id -password admin_password -port SOAP_CONNECTOR_ADDRESS_PORT where:
-
admin_user_id is the user name of the Administrator role on IBM WebSphere® Application Server. This administrator must be configured at the cell level, not at the cluster, node, or server level.
- admin_password is the password of the WebSphere Application Server administrator.
-
SOAP_CONNECTOR_ADDRESS_PORT is the SOAP port for the WebSphere Application Server deployment manager server. The default value of the SOAP port is 8879. If you are using the default port value, you do not have to specify this parameter. If you are not using the default value and you do not know the port number, you can look up its value in the WebSphere Application Server Integrated Solution Console. To look up the SOAP port number, complete the following steps:
- Open the WebSphere Application Server Integrated Solution Console for the deployment manager, and then select System Administration > Deployment Manager.
- In the Additional properties section expand Ports, and then look for the SOAP_CONNECTOR_ADDRESS port entry to find the port number. For example:
-
Linux: ./wsadmin.sh -lang jython -username primaryAdmin -password p@assword -port 8879
- Microsoft Windows: wsadmin -lang jython -username primaryAdmin -password p@assword -port 8879
- Access and check out the Communities configuration files:
-
Use the following command to access the Communities configuration files:
execfile("communitiesAdmin.py")
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.
-
Check out the Communities configuration files using the following command:
CommunitiesConfigService.checkOutPolicyConfig("working\_directory", "cell\_name")
where:
-
working_directory is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working directory while you make changes to them.
Note: Linux only: The directory must grant write permissions or the command will not run successfully.
-
cell_name is the name of the WebSphere Application Server cell hosting the HCL Connections application. This argument is required. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor:
print AdminControl.getCell()
For example:
CommunitiesConfigService.checkOutPolicyConfig("/opt/my_temp_dir", "CommServerNode01Cell")
-
-
-
From the temporary directory to which you just checked out the HCL Connections configuration files, open the communities-policy.xml file in a text editor.
-
Ensure that the file contains the following grant statement, and that it is not "commented out" (disabled).
<comm:grant> <comm:principal class="com.ibm.tango.auth.principal.Role" name="admin" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityManagementPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityMembershipPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityAccessPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityReferencePermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityBroadcastPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityInvitePermission" communityType="*" action="*" /> </comm:grant>
<comm:grant> <comm:principal class="com.ibm.tango.auth.principal.Role" name="admin" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityManagementPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityMembershipPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityAccessPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityReferencePermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityBroadcastPermission" communityType="*" action="*" /> <comm:permission class="com.ibm.tango.auth.permission.CommunityInvitePermission" communityType="*" action="*" /> </comm:grant>
-
Save your changes to the communities-policy.xml file.
-
Check in the updated file by using the following wsadmin client command:
CommunitiesConfigService.checkInPolicyConfig("<working\_directory\>", "<cell\_name\>")
-
To exit the wsadmin client, type exit at the prompt.
-
Stop and restart the server that is hosting the Communities application.
When logged in to Communities, the global administrator that is specified in the various Java EE roles should be able to view and edit all communities and community resources.
Parent topic:Managing content
Related information
Administering application content