Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)


Remove users and groups by using wsadmin

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.

Command-line help is provided for service integration bus commands:

After using the command, save changes to the master configuration; for example, by using the following command:

AdminConfig.save()


Commands

Remove a user

To remove a user from all the roles that they belong to, use the following command:

    ### Jython

    AdminTask.removeUserFromAllRoles("-bus busname -user userName")
    

    ### Jacl

    $AdminTask removeUserFromAllRoles {-bus busname -user userName}
    
    

Remove a group

To remove a group from all the roles that it belongs to, use the following command:

    ### Jython

    AdminTask.removeGroupFromAllRoles("-bus busname -group groupName")
    

    ### Jacl

    $AdminTask removeGroupFromAllRoles {-bus busname -group groupName}
    
    

After using these commands, save changes to the master configuration; for example, by using the following command:

AdminConfig.save()

+

Search Tips   |   Advanced Search