You can add a user with the deleteUser method.
Permission to run the request: Account Owner, Administrator, Organization Administrator.
Parameter | Type | Description |
---|---|---|
credentials (required) | credentials | Read the description of the Credentials object. |
userId (required) | string | ID of the user you want to delete. |
When a call is processed successfully, the system returns an object with the following properties:
Parameter | Type | Description |
---|---|---|
success | bool | True if the user has been deleted |
Error | Description |
---|---|
Unknown user | The user with the given ID cannot be found. |
Permission Denied | You have no permissions to delete the specified user |
<?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <DeleteUserRequest> <credentials> <accountUrl>http://myaccount.ispringlearn.com</accountUrl> <email>email@email.com</email> <password>password</password> </credentials> <userId>1</userId> </DeleteUserRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
<?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <DeleteUserResult> <success>true</success> </DeleteUserResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |