Remove inappropriate content 

Content management commands are used to update inappropriate information stored in the Profiles database, such as text displayed in the About Me and Background fields of the Profiles user interface. These administrative commands can also be used to delete inappropriate photos from the database. No file checkout or server restart is required when using the commands.


Before starting

To access configuration files, use the wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.


About this task

Profiles provides a number of administrative commands that allow you to remove offensive or unwanted content from the database.


Procedure

To update or delete content in the Profiles database...

  1. From the dmgr host:

      cd $DMGR_PROFILE/bin
      ./wsadmin.sh -jython
      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, pick the node where the file is stored.

  • Use the following commands to remove or replace inappropriate or unwanted content from the Profiles database.

      ProfilesService.updateExperience(String user_email_addr, String new_content_for_experience_field)

        Replaces the existing experience text associated with a user's email address with alternate text enclosed by double quotes.

        Experience is the information contained in the Background area of a user's profile.

        For example:

        ProfilesService.updateExperience("ann_jones@company.com","This is new text that will be entered into the Background field for Ann.")

        Note: Rich text cannot be entered with this command.

      ProfilesService.updateDescription(String user_email_addr, String new_content_for_description_field)

        Replaces the existing description text associated with a user's email address with alternate description text enclosed by double quotes.

        Description text is information contained on the About Me tab of a user's profile.

        For example:

        ProfilesService.updateDescription("ann_jones@company.com","This is new text that will be entered into the About Me tab for Ann.")

        Note: Rich text cannot be entered with this command.

      ProfilesService.deletePhoto(String user_email_addr)

        Deletes image files associated with a user's email address. This command can be used only if the user has uploaded a photo to their profile. This command removes the photo.

        For example:

        ProfilesService.deletePhoto("john_doe@company.com")


    Parent topic

    Manage content


       

     

    });

    +

    Search Tips   |   Advanced Search