The mgiAuthenticateDB Tag

DeleteUser Mode

Return to the mgiAuthenticateDB Main Menu

Tag Syntax

The DeleteUser mode of mgiAuthenticateDB has two required parameters and three optional parameters. The tag form is:

<mgiAuthenticateDB mode="DeleteUser" username="Name" 
odbcDatasource="Source Name" odbcUsername="Name" 
odbcPassword="Password">

Required Parameters:

  • mode - The mode is the function that the mgiAuthenticateDB tag performs. In "deleteUser" mode, the mgiAuthenticateDB tag deletes a new user's authentication information from the authentication database.
  • username - The username is the unique login (i.e., name) to be deleted. The username is case-sensitive.

Optional Parameters:

  • odbcDatasource (NT only) - The odbcDatasource is the name of datasource on the server that provides access information for an external ODBC database. If the odbcDatasource parameter is included, authentication information will be deleted from the specified ODBC database rather than the internal MGI database. Inquire with the server administrator for additional information about the use of ODBC databases. If you include the odbcDatasource parameter, the odbcUsername and odbcPassword parameters are required.
  • odbcUsername (NT only) - The odbcUsername is the username required to access the ODBC datasource. The odbcUsername parameter is required if you include the odbcDatasource parameter.
  • odbcPassword (NT only) - The odbcPassword is the code required to access the ODBC datasource. The odbcPassword parameter is required if you include the odbcDatasource parameter.


Example Usage and Output

<mgiAuthenticateDB mode="DeleteUser" 
username={mgiPostArgument name="Username"}>

The deleteUser mode of mgiAuthenticateDB can be used in conjunction with a form submission to delete a user from the authentication database. In this example, the username is posted from a form submission and embedded in the username parameter of the mgiAuthenticateDB tag.

Return to the mgiAuthenticateDB Main Menu


[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]


[MGI Guides Main Menu] [User Guide Main Menu]