Skip to main content

Last updated: 2024-06-07


DisableUser Method


In this topic:


Overview


The DisableUser method changes the status of a SmartOffice user account to Disabled.


The DisableUser method is invoked using the method operation.


Parameters


Parameter NameTypeRequired?Description
ExternalIDStringYesThe value of this parameter is formatted as servername_officename_username (e.g., MYSO_myoffice_daniel).

Example


The following example request disables a user account named daniel in the office MYOFFICE on the server MYSO:


XML
<request version='1.0'>
    <header>...</header>
    <method>
        <DisableUser>
            <ExternalID>MYSO_MYOFFICE_daniel</ExternalID>
        </DisableUser>
    </method>
</request>

The response confirms the user account's change of status:


XML
<response version="1.0">
    <header>
        <sessionClosed/>
    </header>
    <method>
        <DisableUser>1</DisableUser>
    </method>
    <_status>OK</_status>
    <_systime>2015-10-12T21:00:08</_systime>
    <!--Cost 29 mill seconds.-->
</response>