Last updated: 2024-06-07
GetOfficeMultiFactorAuthentication Method
In this topic:
Overview
The GetOfficeMultiFactorAuthentication method indicates whether an office has two-step authentication enabled. The method returns a value of 0 (disabled) or 1 (enabled).
The GetOfficeMultiFactorAuthentication method is invoked using the method operation.
Note: To retrieve two-factor authentication status at the user account level, use the GetUserMultiFactorAuthentication method.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
OfficeID | String | Yes | This is the object ID of the SmartOffice office. |
Example
This example requests the two-step authentication status of an office with object ID Office.1:
XML
<request version='1.0'>
<header>...</header>
<method>
<GetOfficeMultiFactorAuthentication>
<OfficeID>Office.1</OfficeID>
</GetOfficeMultiFactorAuthentication>
</method>
</request>The response returns a status of 0 (disabled):
XML
<response version="1.0">
<header>
<sessionClosed/>
</header>
<method>
<GetOfficeMultiFactorAuthentication>
<OfficeMultiFactorAuthentication>
<TwoWayAuthMode>0</TwoWayAuthMode>
</OfficeMultiFactorAuthentication>
</GetOfficeMultiFactorAuthentication>
</method>
<_status>OK</_status>
<_systime>2017-09-27T22:45:07</_systime>
<!-- Cost 16 mill seconds. -->
</response>