addLMEmailRestriction

Add a new email restriction to a pool.

The restriction may be either an Include (allow the user to use the pool) or an Exclude (prevent the user from using the pool).

Parameters:

Field
Type
Required Description
sessionid String yes The sessionid returned by loginLMLicensee()
licensee String yes The company code (not the company name) for the Licensee.
customer String yes The company code (not the company name) for the Customer.
pool String yes The name of the customer's pool. If the pool does not have a name, then passing "Pool ##" where ## is the pool number will also work.
email String yes The user's email address.
accessType AccessRestrictionType no The restriction type (I or E). If this is null, then I (Include) will be assumed.


Return values: A StatusData structure:

Field
Type
Description
fault FaultData If an error has occurred on the server, this will contain information about the error. This field will be null if no error occurred.
status Integer 0


Example:

NitroAdminAccessServiceLocator service = new NitroAdminAccessServiceLocator();
NitroAdminAccess server = service.getNitroAdminAccess();

StatusData ret = server.addLMEmailRestricton(sessionid, "smith", "cust1", "my first pool", "john@smith.com", AccessRestrictionType.I);
if (ret.getFault()!=null) {
	System.err.println("Error: " + ret.getFault().getFaultString());
	return;
}
Comments