commadmin user delete

commadmin user delete

The commadmin user delete command marks a single user as deleted. To mark multiple users as deleted, use the -i option.

This command only marks a user as deleted; it does not remove the user entry from the directory.

No undelete utility exists. However, you can use the ldapmodify command to change the status attribute of a user entry to active at any time before the purge grace period has expired and a purge is set to run against the entry.

To remove a user

The following steps summarize how to remove a user from the directory. For more information, see Removing Users, Groups, and Services from a Domain.

1. Mark the user as deleted by running the commadmin user delete command.

2. Remove resources from the user.

A resource can be a mailbox or a calendar.

For mail services, the program is called msuserpurge. Refer to the Sun Java System Messaging Server Administration Reference for information about the msuserpurge utility.

For calendar services, the program is csclean. Refer to the Sun Java System Calendar Server Administration Guide for information about the csclean utility.

3. Permanently remove the user by invoking the following command: commadmin domain purge.

For reference details, see commadmin domain purge.

Syntax

commadmin user delete -D <login> -n <domain> -l <login name> -w <password> [-d <domain>]
    [-h] [-?] [-i <inputfile>] [-p <AM port>] [-s] [-S <service>] [-v] [-V] [-X <AM host>]

Options

The following options are mandatory:

Option Description
-D login The user ID of the user with the permission to execute this command.
-n domain The domain of the user specified with the -D option.
-w password The password of the user specified with the -D option.
-l userid The user ID of the user to be deleted.

The following options are non-mandatory:

Option Description
-d domain Domain of the user. If -d is not specified, the domain specified by -n is used.
-h, –? Prints command usage syntax.
-i inputfile Reads the command information from a file instead of the command line.
An option value specified in the input file overrides any value for the same option set in the command line.
-p AM port Specifies an alternate TCP port where the Access Manager is listening. If not specified, the default AM port is used, or Port 80 is used if no default was configured at install time.
-s Use SSL (Secure Socket Layer) to connect to the directory.
-S service Specifies the services to be removed from the user. The user remains active, but only the specified services are deactivated. If -S is not specified, then the user is deleted.
service can have the value of a single service or multiple services. The valid service values are mail, cal, and im. These values are case-insensitive.
The list of services is separated by the comma (,) delimiter.
For example:
-S mail,cal,im
-v Enable debugging output.
-V Prints information about the utility and its version.
-X AM host Specifies the host on which the Access Manager is running. If not specified, the default AM host is used, or the localhost if no default was configured at install time.

Example

To mark an existing user as deleted:

commadmin user delete -D chris -n sesta.com -w bolton -l smith

To delete the mail services only from user smith:

commadmin user delete -D chris -n sesta.com -w bolton -l smith -S mail

Labels

delegatedadministrator delegatedadministrator Delete
da da Delete
reference reference Delete
commadmin commadmin Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact