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 you to make the most commonly-required types of update in a consistent manner, where modifying the underlying objects directly would be error-prone.
The wsadmin scripting client is run from Qshell. For more information, see Configuring Qshell to run WebSphere Application Server scripts using wsadmin scripting.
print AdminTask.help('SIBAdminBusSecurityCommands')
print AdminTask.help('command_name')
AdminConfig.save()
AdminTask.removeUserFromAllRoles("-bus busname -user userName")
$AdminTask removeUserFromAllRoles {-bus busname -user userName}
AdminTask.removeGroupFromAllRoles("-bus busname -group groupName")
$AdminTask removeGroupFromAllRoles {-bus busname -group groupName}
AdminConfig.save()