+

Search Tips   |   Advanced Search

WIMManagementCommands

Use the Jython or Jacl scripting languages to configure security with the wsadmin tool. The commands in the WIMManagementCommands group can be used to manage groups, members, and users in the virtual member manager.

If the Use global security settings option is selected for the user realm or the Global federated repositories option is selected as the realm type for the specified domain, the user and group management commands are executed on the federated repository of the admin domain. For example, if we run the createUser command for the specified domain, the user is created in the admin domain. However, configuration changes that are performed on the domain are applied to the security domain-specific configuration.

The WIMManagementCommands command group for the AdminTask objectcommands include:


addMemberToGroup

Add a member to a group in the virtual member manager. If successful, the addMemberToGroup command returns the unique name of the added member.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


changeMyPassword

Allows you to change your password when logged into WebSphere Application Server. It requires you to specify our old password and the new password, and then confirm the new password. If our old password is validated successfully, and the new password specified exactly matches your confirmation of the new password, then the password is changed.

Important: Use the changeMyPassword command only for repositories that have a write adapter for federated repositories. It will not work for read-only adapters or the federated repositories user registry bridge configured with the local operating system user registry or a custom user registry.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


clearIdMgrRepositoryCache

Clear all the entities from all of the caches of a specified repository adapter or all repository adapters.

Frequent use of this command to clear the cache may result in performance degradation. When the entire cache is cleared, the subsequent operation has to get the details from the repository and update the cache with this newly retrieved data; so the subsequent operation takes longer to complete.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


clearIdMgrUserFromCache

Clear the specified user from the cache of the repository adapter, if the user exists in the cache.

Important: The clearIdMgrUserFromCache command does not clear the group membership details of the user. To clear group membership information for a user from the cache, use the getMembershipOfUser wsadmin command with the -clearCache parameter. See the description of the getMembershipOfUser command.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


createGroup

Create a new group in the virtual member manager. After the command completes, the new group will appear in the repository. For LDAP, a group must contain a member. The memberUniqueName parameter is optional in this case. If we set the memberUniqueName parameter to the unique name of a group or a user, the group or user will be added as a member of the group.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


createUser

Create a new user in the default repository or a repository that the parent command parameter specifies. This command creates a person entity and a login account entity in the virtual member manager.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


deleteGroup

Celete a group in the virtual member manager. We cannot use this command to delete descendants. When this command completes, the group will be deleted from the repository.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


deleteUser

Delete a user from the virtual member manager. This includes a person object and an account object in the non-merged repositories.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


duplicateMembershipOfGroup

Make a one group a member of all of the same groups as another group. For example, group A is in group B and group C. To add group D to the same groups as group A, use the duplicateMembershipOfGroup command.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


duplicateMembershipOfUser

Make a one user a member of all of the same groups as another user. For example, user 1 is in group B and group C. To add user 2 to the same groups as user 1, use the duplicateMembershipOfUser command.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


getGroup

Retrieve the common name and description of a group.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


getIdMgrSupportedDataTypes

Return a list of all data types supported by a specified repository or all default data types supported by federated repositories. This command is available in both connected and local modes.

(ZOS) Note: If we run this command in local mode for a user registry that uses Resource Access Control Facility (RACF), nothing is returned.

Parameters and return values

The getIdMgrSupportedDataTypes command returns a list with the names of supported data types:

Examples

Batch mode example usage:

Interactive mode example usage:


getMembershipOfGroup

Retrieve the groups of which a group is a member.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


getMembershipOfUser

Retrieve the groups of which a user is a member.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


getMembersOfGroup

Retrieves the members of a group.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


getUser

Retrieve information about a user in the virtual member manager.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


removeMemberFromGroup

Remove a user or a group from a group.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


searchGroups

Find groups in the virtual member manager that match criteria that we provide. For example, we can use the searchGroups command to find all of the groups with a common name that begins with IBM. We can search for any virtual member manager property because the command is generic.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


searchUsers

Find users in the virtual member manager that match criteria that we provide. For example, we can use the searchUsers command to find all of the telephone numbers that contain 919. We can search for any virtual member manager property because the command is generic.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


updateGroup

Update the common name or the description of a group.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


updateUser

Update the following properties: uniqueName, uid, password, cn, sn, or ibm-primaryEmail.

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:

  • wsadmin AdminTask
  • Commands for the AdminTask object
  • Authentication cache settings