Removing users and groups
Use these commands to remove a user or group. Removing a user or group withdraws the authorization permissions for all roles to which they have previously been added.
To run these commands, use the AdminTask object of the wsadmin scripting client. Each command acts on multiple objects in one operation. The commands are provided to allow us to make the most commonly-required types of update in a consistent manner, where modifying the underlying objects directly would be error-prone.
(iSeries) (iSeries) The wsadmin scripting client is run from Qshell. (iSeries) See Configure Qshell to run WebSphere scripts .
Command-line help is provided for service integration bus commands:
- For a list of the available service integration bus security commands in Jython and a brief description of each command, enter at the wsadmin prompt:
print AdminTask.help('SIBAdminBusSecurityCommands')
- For overview help on a given command, enter at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save the changes to the master configuration using the following command:
AdminConfig.save()
Commands
- Removing a user
- To remove a user from all the roles that they belong to.
- Use Jython:
AdminTask.removeUserFromAllRoles("-bus busname -user userName")- Use Jacl:
$AdminTask removeUserFromAllRoles {-bus busname -user userName}
- Removing a group
- To remove a group from all the roles that it belongs to.
- Use Jython:
AdminTask.removeGroupFromAllRoles("-bus busname -group groupName")- Use Jacl:
$AdminTask removeGroupFromAllRoles {-bus busname -group groupName}
After using these commands, save the changes to the master configuration; for example, using the following command:
AdminConfig.save()