Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
WIMManagementCommands command group
Overview
Use the Jython or Jacl scripting languages to configure security with wsadmin.sh. The commands and parameters in the WIMManagementCommands group can be used to create and 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 you run the createUser command for the specified domain, the user is created in the admin domain. However, configuration changes performed on the domain are applied to the security domain-specific configuration.
The WIMManagementCommands command group includes the following commands:
- addMemberToGroup
- changeMyPassword
- createGroup
- createUser
- deleteGroup
- deleteUser
- duplicateMembershipOfGroup
- duplicateMembershipOfUser
- getGroup
- getMembershipOfGroup
- getMembershipOfUser
- getMembersOfGroup
- getUser
- removeMemberFromGroup
- searchGroups
- searchUsers
- updateGroup
- updateUser
addMemberToGroup
The addMemberToGroup command adds 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
-memberUniqueName
Unique name for the user or group that you want to add to the specified group. This parameter maps to the uniqueName property in virtual member manager.
-groupUniqueName
Unique name for the group to which you want to add the user or group that you specifed in the memberUniqueName parameter. This parameter maps to the uniqueName property in virtual member manager.
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask addMemberToGroup {-memberUniqueName uid=meyersd,cn=users,dc=yourco,dc=com –groupUniqueName cn=admins,cn=groups,dc=yourco,dc=com}### Jython string
AdminTask.addMemberToGroup ('[-memberUniqueName uid=meyersd,cn=users,dc=yourco,dc=com –groupUniqueName cn=admins,cn=groups,dc=yourco,dc=com]')
Jython list:
AdminTask.addMemberToGroup (['-memberUniqueName', 'uid=meyersd', 'cn=users', 'dc=yourco', 'dc=yourco', 'groupUniqueName', 'cn=admins', 'cn=groups', 'dc=yourco', 'dc=com'])
Interactive example...
### Jacl
$AdminTask addMemberToGroup {-interactive}### Jython string
AdminTask.addMemberToGroup ('[-interactive]')
Jython list:
AdminTask.addMemberToGroup (['-interactive'])
changeMyPassword
The changeMyPassword command allows you to change your password when you are logged into WAS. It requires you to specify your old password and the new password, and then confirm your new password. If your old password is validated successfully, and the new password that you specify exactly matches your confirmation of the new password, then the password is changed.
We can 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 that is configured with the local operating system user registry or a custom user registry.
Parameters and return values
-oldPassword
The old password of the user. The value of the oldPassword parameter is validated against the password of the user in the repository. (String, required)
-newPassword
The new password that must be set for the user. (String, required)
-confirmNewPassword
The new password that must be set for the user. The value of the newPassword and confirmNewPassword parameters must match. (String, required) After you change your password, your old password might continue to remain in effect, allowing you to login using your old password. This happens if both the authentication cache and basic authentication cache keys are enabled, causing the old password to remain valid according to the value specified for cache timeout or cache size.
We can clear the WAS security cache so that you do not have to wait for the cacheTimeout to expire. To clean entries from the AuthCache, use the SecurityAdmin MBeanclearAuthCache methods, clearAuthCache or purgeUserFromCache.
Call one of the following MBean methods on each WAS process that requires the subject of the user to be cleared from the cache. The AuthCache is a cache for each process, so every process (not just the dmgr) that has the user authenticated must have this method called:
/** * clearAuthCache */ public void clearAuthCache()
/** * purgeUserFromCache */ public void purgeUserFromAuthCache(String realm, String userid)
The following example shows how you can use wsadmin to call the clearAuthCache method on the dmgr process:
set sa [$AdminControl queryNames type=SecurityAdmin,process=dmgr,*] $AdminControl invoke $sa clearAuthCacheFor more information, read Authentication cache settings.
Examples
Batch example...
### Jacl
$AdminTask changeMyPassword {-oldPassword pwd1 –newPassword pwd2 –confirmNewPassword pwd2}### Jython string
AdminTask.changeMyPassword ('[oldPassword pwd1 –newPassword pwd2 –confirmNewPassword pwd2]')
Jython list:
AdminTask.changeMyPassword (['oldPassword', 'pwd1', '–newPassword', 'pwd2', '–confirmNewPassword', 'pwd2'])
Interactive example...
### Jacl
$AdminTask changeMyPassword {-interactive}### Jython string
AdminTask.changeMyPassword ('[-interactive]'
Jython list:
AdminTask.changeMyPassword (['-interactive']))
createGroup
The createGroup command creates 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 you 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
-cn
Common name for the group to create. This parameter maps to the cn property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional)
-description
Specifies additional information about the group that you want to create. This parameter maps to the description property in a virtual member manager object. (String, optional)
-parent
Repository in which to create the group. This parameter maps to the parent property in the virtual member manager. (String, optional)
-memberUniqueName
Unique name for the user or group that you want to add to the new group. This parameter maps to the uniqueName property in the virtual member manager. (String, optional) Examples
Batch example...
### Jacl
$AdminTask createGroup {-cn groupA -description a group of admins}### Jython string
AdminTask.createGroup ('[-cn groupA -description a group of admins]')
Jython list:
AdminTask.createGroup (['-cn', 'groupA', '-description', 'a group of admins'])
Interactive example...
### Jacl
$AdminTask createGroup {-interactive}### Jython string
AdminTask.createGroup ('[-interactive]')
Jython list:
AdminTask.createGroup (['-interactive'])
createUser
The createUser command creates 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
-uid
Unique ID for the user to create. Virtual member manager then creates a uniqueId value and a uniqueName value for the user. This parameter maps to the uid property in the virutal member manager. (String, required)
-password
Password for the user. This parameter maps to the password property in the virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional)
-confirmPassword
Password again to validate how it was entered for the password parameter. This parameter maps to the password property in virtual member manager. (String, optional)
-cn
Specifes the first name or given name of the user. This parameter maps to the cn property in virutal member manager. (String, required)
-sn
Last name or family name of the user. This parameter maps to the sn property in virtual member manager. (String, required)
Email address of the user. This parameter maps to the ibm-PrimaryEmail property in the virtual member manager. (String, optional)
-parent
Repository in which to create the user. This parameter maps to the parent property in the virtual member manager. (String, optional) Examples
Batch example...
### Jacl
$AdminTask createUser {-uid 123 -password tempPass -confirmPassword tempPass -cn Jane -sn Doe -mail janedoe@acme.com}### Jython string
AdminTask.createUser ('[-uid 123 -password tempPass -confirmPassword tempPass -cn Jane -sn Doe -mail janedoe@acme.com]')
Jython list:
AdminTask.createUser (['-uid', '123', '-password', 'tempPass', '-confirmPassword', 'tempPass', '-cn', 'Jane', '-sn', 'Doe', '-mail', 'janedoe@acme.com'])
Interactive example...
### Jacl
$AdminTask createUser {-interactive}### Jython string
AdminTask.createUser ('[-interactive]')
Jython list:
AdminTask.createUser (['-interactive'])
deleteGroup
The deleteGroup command deletes 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
-uniqueName
Unique name for the group to delete. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask deleteGroup {-uniqueName cn=operators,cn=users,dc=yourco,dc=com}### Jython string
AdminTask.deleteGroup ('[-uniqueName cn=operators,cn=users,dc=yourco,dc=com]')
Jython list:
AdminTask.deleteGroup (['-uniqueName', 'cn=operators,cn=users,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask deleteGroup {-interactive}### Jython string
AdminTask.deleteGroup ('[-interactive]')
Jython list:
AdminTask.deleteGroup (['-interactive'])
deleteUser
The deleteUser command deletes 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
-uniqueName
Unique name for the user to delete. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask deleteUser {-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com}### Jython string
AdminTask.deleteUser ('[-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com]')
Jython list:
AdminTask.deleteUser (['-uniqueName', 'uid=dmeyers,cn=users,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask deleteUser {-interactive}### Jython string
AdminTask.deleteUser ('[-interactive]')
Jython list:
AdminTask.deleteUser (['-interactive'])
duplicateMembershipOfGroup
Use the duplicateMembershipOfGroup command to 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
-copyToUniqueName
Name of the group to which to add the memberships of the group specified in the copyFromUniqueName parameter. (String, required)
-copyFromUniqueName
Name of the group from which to copy the group memberships for another group to use. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask duplicateMembershipOfGroup {-copyToUniqueName cn=operators,cn=groups,dc=yourco,dc=com -copyFromUniqueName cn=admins,cn=groups,dc=yourco,dc=com}### Jython string
AdminTask.duplicateMembershipOfGroup ('[-copyToUniqueName cn=operators,cn=groups,dc=yourco,dc=com -copyFromUniqueName cn=admins,cn=groups,dc=yourco,dc=com]')
Jython list:
AdminTask.duplicateMembershipOfGroup (['-copyToUniqueName', 'cn=operators,cn=groups,dc=yourco,dc=com', '-copyFromUniqueName', 'cn=admins,cn=groups,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask duplicateMembershipOfGroup {-interactive}### Jython string
AdminTask.duplicateMembershipOfGroup ('[-interactive]')
Jython list:
AdminTask.duplicateMembershipOfGroup (['-interactive'])
duplicateMembershipOfUser
Use the duplicateMembershipOfUser command to 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
-copyToUniqueName
Name of the user to which to add the memberships of the user specified in the copyFromUniqueName parameter. (String, required)
-copyFromUniqueName
Name of the user from which to copy the group memberships for another user to use. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask duplicateMembershipOfUser {-copyToUniqueName uid=meyersd,cn=users,dc=yourco,dc=com -copyFromUniqueName uid=jhart,cn=users,dc=yourco,dc=com}### Jython string
AdminTask.duplicateMembershipOfUser ('[-copyToUniqueName uid=meyersd,cn=users,dc=yourco,dc=com -copyFromUniqueName uid=jhart,cn=users,dc=yourco,dc=com]')
Jython list:
AdminTask.duplicateMembershipOfUser (['-copyToUniqueName', 'uid=meyersd,cn=users,dc=yourco,dc=com', '-copyFromUniqueName', 'uid=jhart,cn=users,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask duplicateMembershipOfUser {-interactive}### Jython string
AdminTask.duplicateMembershipOfUser ('[-interactive]')
Jython list:
AdminTask.duplicateMembershipOfUser (['-interactive'])
getGroup
The getGroup command retrieves the common name and description of a group.
Parameters and return values
-uniqueName
Unique name for the group to view. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask getGroup {-uniqueName cn=operators,cn=groups,dc=yourco,dc=com}### Jython string
AdminTask.getGroup ('[-uniqueName cn=operators,cn=groups,dc=yourco,dc=com]')
Jython list:
AdminTask.getGroup (['-uniqueName', 'cn=operators,cn=groups,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask getGroup {-interactive}### Jython string
AdminTask.getGroup ('[-interactive]')
Jython list:
AdminTask.getGroup (['-interactive'])
getMembershipOfGroup
The getMembershipOfGroup command retrieves the groups of which a group is a member.
Parameters and return values
-uniqueName
Unique name for the group whose group memberships to view. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask getMebmershipOfGroup {-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com}### Jython string
AdminTask.getMebmershipOfGroup ('[-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com]')
Jython list:
AdminTask.getMebmershipOfGroup (['-uniqueName', 'uid=dmeyers,cn=users,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask getMembershipOfGroup {-interactive}### Jython string
AdminTask.getMembershipOfGroup ('[-interactive]')
Jython list:
AdminTask.getMembershipOfGroup (['-interactive'])
getMembershipOfUser
The getMembershipOfUser command retrieves the groups of which a user is a member.
Parameters and return values
-uniqueName
Unique name for the user whose group memberships to view. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask getMebmershipOfUser {-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com}### Jython string
AdminTask.getMebmershipOfUser ('[-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com]')
Jython list:
AdminTask.getMebmershipOfUser (['-uniqueName', 'uid=dmeyers,cn=users,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask getMembershipOfUser {-interactive}### Jython string
AdminTask.getMembershipOfUser ('[-interactive]')
Jython list:
AdminTask.getMembershipOfUser (['-interactive'])
getMembersOfGroup
The getMembersOfGroup command retrieves the members of a group.
Parameters and return values
-uniqueName
Unique name for the group whose members you want to view. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask getMembersOfGroup {-uniqueName cn=operators,cn=groups,dc=yourco,dc=com}### Jython string
AdminTask.getMembersOfGroup ['(-uniqueName cn=operators,cn=groups,dc=yourco,dc=com]')
Jython list:
AdminTask.getMembersOfGroup [('-uniqueName', 'cn=operators,cn=groups,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask getMembersOfGroup {-interactive}### Jython string
AdminTask.getMembersOfGroup ('[-interactive]')
Jython list:
AdminTask.getMembersOfGroup (['-interactive'])
getUser
The getUser command retrieves information about a user in the virtual member manager.
Parameters and return values
-uniqueName
Unique name for the user to view. This parameter maps to the uniqueName property in the virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask getUser {-userName uid=dmeyers,cn=users,dc=yourco,dc=com}### Jython string
AdminTask.getUser ('[-userName uid=dmeyers,cn=users,dc=yourco,dc=com]')
Jython list:
AdminTask.getUser (['-userName', 'uid=dmeyers,cn=users,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask getUser {-interactive}### Jython string
AdminTask.getUser ('[-interactive]')
Jython list:
AdminTask.getUser (['-interactive'])
removeMemberFromGroup
The removeMemberFromGroup command removes a user or a group from a group.
Parameters and return values
-memberUniqueName
Unique name for the user or group that you want to remove from the specified group. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-groupUniqueName
Unique name for the group from which you want to remove the user or group specified with the memberUniqueName paramter. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional) Examples
Batch example...
### Jacl
$AdminTask removeMemberFromGroup {-memberUniqueName uid=meyersd,cn=users,dc=yourco,dc=com -groupUniqueName cn=admins,cn-groups,dc=yourco,dc=com}### Jython string
AdminTask.removeMemberFromGroup ('[-memberUniqueName uid=meyersd,cn=users,dc=yourco,dc=com -groupUniqueName cn=admins,cn-groups,dc=yourco,dc=com]')
Jython list:
AdminTask.removeMemberFromGroup (['-memberUniqueName', 'uid=meyersd,cn=users,dc=yourco,dc=com', '-groupUniqueName', 'cn=admins,cn-groups,dc=yourco,dc=com'])
Interactive example...
### Jacl
$AdminTask removeMemberFromGroup {-interactive}### Jython string
AdminTask.removeMemberFromGroup ('[-interactive]')
Jython list:
AdminTask.removeMemberFromGroup (['-interactive'])
searchGroups
Use the searchGroups command to find groups in the virtual member manager that match criteria that provided. For example, you 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
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional)
-cn
The first name or given name of the user. This parameter maps to the cn property in the virtual member manager. We must set this parameter or the description parameter, but not both. (String, optional)
-description
Specifies information about the group. This parameter maps to the description entity in a virtual member manager object. We must set this parameter or the cn parameter, but not both. (String, optional)
-timeLimit
Maximum amount of time in milliseconds that the search can run. The default value is no time limit. (String, optional)
-countLimit
Maximum number of results that you want returned from the search. By default, all groups found in the search are returned. (String, optional) Examples
Batch example...
### Jacl
$AdminTask searchGroups {cn *IBM*}### Jython string
AdminTask.searchGroups('[-cn *IBM*]')
Jython list:
AdminTask.searchGroups(['-cn', '*IBM*'])
Interactive example...
### Jacl
$AdminTask searchGroups {-interactive}### Jython string
AdminTask.searchGroups ('[-interactive]')
Jython list:
AdminTask.searchGroups (['-interactive'])
searchUsers
Use the searchUsers command to find users in the virtual member manager that match criteria that provided. For example, you can use the searchUsers command to find all of the telephone numbers that contain 919. You can search for any virtual member manager property because the command is generic.
Parameters and return values
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional)
-principalName
Principal name oft he user used as the logon ID for the user in the system. This parameter maps to the principalName property in virtual member manager. We must specify only one of the following parameters: principalName, uid, cn, sn, or ibm-primaryEmail. (String, optional)
-uid
Unique ID value for the user for whom to search. This parameter maps to the uid property in virtual member manage. We must specify only one of the following parameters: principalName, uid, cn, sn, or ibm-primaryEmail. (String, optional)
-cn
First name or given name of the user. This parameter maps to the cn property in virtual member manager. We must specify only one of the following parameters: principalName, uid, cn, sn, or ibm-primaryEmail. (String, optional)
-sn
Last name or family name of the user. This parameter maps to the sn property in virtual member manager. We must specify only one of the following parameters: principalName, uid, cn, sn, or ibm-primaryEmail. (String, optional)
-ibm-primaryEmail
Email address of the user. This parameter maps to the ibm-PrimaryEmail property in the virtual member manager. We must specify only one of the following parameters: principalName, uid, cn, sn, or ibm-primaryEmail. (String, optional)
-timeLimit
Maximum amount of time in milliseconds that the search can run. The default is not time limit. (String, optional)
-countLimit
Maximum number of results that you want returned from the search. By default, all users found int he search are returned. (String, optional) Examples
Batch example...
### Jacl
$AdminTask searchUsers {-principalName */IBM/US*}### Jython string
AdminTask.searchUsers ('[-principalName */IBM/US*]')
Jython list:
AdminTask.searchUsers (['-principalName', '*/IBM/US*'])
Interactive example...
### Jacl
$AdminTask searchUsers {-interactive}### Jython string
AdminTask.searchUsers ('[-interactive]')
Jython list:
AdminTask.searchUsers (['-interactive'])
updateGroup
The updateGroup command updates the common name or the description of a group.
Parameters and return values
-uniqueName
Unique name for the group for which you want to modify the properties. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional)
-cn
New common name used for the group. This parameter maps to the cn property in virtual member manager. (String, optional)
-description
New information about the group. This parameter maps to the description entity in a virtual member manager object. (String, optional) Examples
Batch example...
### Jacl
$AdminTask updateGroup {-uniqueName cn=operators,cn=groups,dc=yourco,dc=com -cn groupA}### Jython string
AdminTask.updateGroup ('[-uniqueName cn=operators,cn=groups,dc=yourco,dc=com -cn groupA]')
Jython list:
AdminTask.updateGroup (['-uniqueName', 'cn=operators,cn=groups,dc=yourco,dc=com', '-cn', 'groupA'])
Interactive example...
### Jacl
$AdminTask updateGroup {-interactive}### Jython string
AdminTask.updateGroup ('[-interactive]')
Jython list:
AdminTask.updateGroup (['-interactive'])
updateUser
The updateUser command updates the following properties: uniqueName, uid, password, cn, sn, or ibm-primaryEmail.
Parameters and return values
-uniqueName
Unique name for the user for which you want to modify the properties. This parameter maps to the uniqueName property in virtual member manager. (String, required)
-securityDomainName
Name that uniquely identifies the security domain. If not specified, uses the global federated repository. (String, optional)
-uid
New unique ID value for the user. This parameter maps to the uid property in virtual member manager. (String, optional)
-password
New password for the user. This parameter maps to the password property in virtual member manager. (String, optional)
-confirmPassword
Password again to validate how it was entered on the password parameter. This parameter maps to the password property in virtual member manager. (String, optional)
-cn
New first name or given name of the user. This parameter maps to the cn property in virtual member manager. (String, optional)
-surname
New last name or family name of the user. This parameter maps to the sn property in virtual member manager. (String, optional)
-ibm-primaryEmail
New email address of the user. This parameter maps to the mail property in virtual member manager. (String, optional) Examples
Batch example...
### Jacl
$AdminTask updateUser {-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com -uid 123}### Jython string
AdminTask.updateUser ('[-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com -uid 123]')
Jython list:
AdminTask.updateUser (['-uniqueName', 'uid=dmeyers,cn=users,dc=yourco,dc=com', '-uid', '123'])
Interactive example...
### Jacl
$AdminTask updateUser {-interactive}### Jython string
AdminTask.updateUser ('[-interactive]')
Jython list:
AdminTask.updateUser (['-interactive'])
Use the wsadmin scripting AdminTask object for scripted administration
Related
Commands using wsadmin.sh
Authentication cache settings