Community articleConfiguring the status update feature by profile type
Added by IBM contributorIBM on March 28, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Edit settings in the profiles-policy.xml file to configure the status update feature according to profile type.



Edit settings in the profiles-policy.xml file to configure the status update feature according to profile type.

Before you begin

To edit configuration files, you must use the IBM® WebSphere® Application Server wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.

About this task

Profiles users can keep people in their network and the wider organization informed about their latest activities by posting status messages. You can control whether users can update their status message by enabling or disabling status updates for specific profile types. You can also configure access control settings for status updates according to profile type.

By default, status messages expire after 7 days and are cleared from the system when they expire.

Procedure

The following steps provide information about the properties that you can set for the status update feature, and the access levels and scopes that you can configure.
  1. Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
  2. app_server_root\profiles\dm_profile_root\bin

    where app_server_root is the WebSphere Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.

    You must start the client from this directory or subsequent commands that you enter do not execute correctly.
  3. Start the Profiles Jython script interpreter.
    1. Enter the following command to access the Profiles configuration files:
    2. execfile("profilesAdmin.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.
  4. Use the following command to check out the profiles-policy.xml file:
  5. ProfilesConfigService.checkOutPolicyConfig("<working_directory>", "cell_name")


    where:
    • working_directory is the temporary working directory to which the configuration XML and XSD files will be copied. The files are kept in this working directory while you make changes to them.
    • cell_name is the name of the IBM WebSphere Application Server cell hosting the Profiles application. This argument is required.
    For example:

    ProfilesConfigService.checkOutPolicyConfig("/wsadminoutput", "jdoe30Node02Cell")

  6. Open the profiles-policy.xml file using a text editor, from the temporary directory to which you checked it out.
  7. Edit the following properties for the status update feature as needed.
  8. profile.status
    Enables or disables the status update feature.

    This property takes a string value. Possible values include:
    • true. Enables the status update feature for users with the specified profile type. The user interface for status messages displays.
    • false. Disables the status update feature for users with the specified profile type. The user interface for status messages does not display. The access control level settings are also ignored when this feature is disabled.

    profile.status.update
    Controls user access to update status messages.

    Access levels for this property can be defined using one of the following scopes:
    • none. No one can update the status message of users with the specified profile type.
    • self. Users with the specified profile type can update their own status message. Administrators can also update the status message of users with the specified profile type.

    For example:

    <feature name="profile.status">
      <profileType type="default" enabled="true">
       <acl name="profile.status.update" scope="self" /> 
      </profileType>
    </feature>


    The code sample above enables the status update feature for the default profile, but restricts the ability to update status messages to profile owners and administrators.
  9. Save your changes and check the profiles-policy.xml file back in using the following command:
  10. ProfilesConfigService.checkInPolicyConfig()

  11. To exit the wsadmin client, type exit at the prompt.
  12. Stop and restart the Profiles server.
Related concepts
Working with status messages