When setting up a new IBM Connections system, I always forget how to add admin permissions to a user for the various applications that make up IBM Connections. It's not the sort of command that you remember mainly because there are more fun things to think about.

Anyway, this is it, in all its glory:


cd /opt/IBM/WebSphere/AppServerDemo/profiles/Dmgr01/bin
./wsadmin.sh -lang jython -user wasadmin -password passw0rd
AdminApp.edit('Activities', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Blogs', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Communities', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Files', '[ -MapRolesToUsers [[ org-admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Forums', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Forums', '[ -MapRolesToUsers [[ search-public-admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Homepage', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Mobile Administration', '[ -MapRolesToUsers [[ administrator AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('News', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('News', '[ -MapRolesToUsers [[ widget-admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Search', '[ -MapRolesToUsers [[ search-admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('WidgetContainer', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminApp.edit('Wikis', '[ -MapRolesToUsers [[ admin AppDeploymentOption.No AppDeploymentOption.No david "" "AppDeploymentOption.No user:jnRealm/CN=David Simpson,O=AppFusions" "" ]]]' )
AdminConfig.save()

In this case, you'll notice that the username is david and he is listed in the Domino LDAP as CN=David Simpson,O=AppFusions. You'll need to change this appropriately.

Adapted from: Adding users to admin roles in IBM Connections 4 by Michael Ransley, Just Nudge.