Home

 

Change configuration property values

Configuration settings control how and when various Profiles operations take place. You can edit the settings to change the ways that profiles behave.

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


Configure Profiles using scripts accessed with wsadmin. These scripts use the AdminConfig object available in the IBM WebSphere Application Server wsadmin client to interact with the Profiles configuration file. Changes to configuration settings require node synchronization and a restart of the Profiles server before they take effect.

There are no Profiles feature administrative tools for adding or removing a user's profile. If you want to add or remove a profile for a person, add or remove that person's entry from the corporate LDAP system. Use that directory's native tools to create and delete user entries. When you perform standard synchronization tasks on the Profiles database, the profiles are updated. If you add a new user to the LDAP directory, a profile is created for that user. If you remove a user entry from the LDAP directory, that user's profile is removed. See Synchronizing user data between Profiles and the LDAP directory for more details.

To change Profiles configuration settings...

  1. Use wsadmin to access and check out the Profiles configuration files:

    1. Access the Profiles configuration files:

    2. Check out the Profiles configuration files...

      ProfilesConfigService.checkOutConfig("<working_directory>", "cell_name")

      where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes to separate directories in the file path, even if you are using the Microsoft Windows operating system.

      • cell_name is the name of the WebSphere Application Server cell hosting the Profiles feature. This argument is required even in stand-alone deployments. This argument is case-sensitive, so type it with care. If you do not know the cell name, do one of the following to determine it:

        • Stand-alone deployment: See:

          WAS_HOME\profiles\profile_name\config\cells\

        • Network deployment: From wsadmin...

          print AdminControl.getCell()

      For example:

      • AIX/Linux:

          ProfilesConfigService.checkOutConfig("/opt/prof/temp","foo01Cell01")
          

    3. Microsoft Windows:

        ProfilesConfigService.checkOutConfig("c:/prof/temp","foo01Cell01")
        

  2. To change a Profiles configuration setting...

    ProfilesConfigService.updateConfig("<property>", "<value>")

    where:

    • <property> is one of the editable Profiles configuration properties.

    • <value> is the new value with which you want to set that property.

    For example, the following code disables the display of organizational information.

      ProfilesConfigService.updateConfig("organizationalStructure.enabled","false")
      

    See Profiles configuration properties for a complete list of editable properties.

  3. Optional: Repeat the previous step once for each property setting you want to change.


Check the configuration files back in after making changes, and they must be checked in during the same wsadmin session in which they were checked out for the changes to take effect. See Applying property changes for details.


Administer Profiles

 

Related tasks

Synchronize user data between Profiles and the LDAP directory

Apply property changes


+

Search Tips   |   Advanced Search