loginProtectAddUser — Adding a user
This method allows you to add a user to the Login Protect, for access to protected URLs with the two-factor authentication (2FA) enforcement.
The API endpoint is: https://api.sitelock.com/v1/partner
Request format
-
SiteLockOnlineRequest: This element is used to delineate the full API request.
-
authentication: The partner’s username, password, and branding.
-
username: The partner’s API username.
-
password: The partner’s API password.
-
-
loginProtectAddUser: The method name.
-
site_id: The site IDfor which to add the user.
-
email: The user’s email address to be added.
-
name: The user’s name to be added.
-
phone: The user’s phone number to be added (for SMS OTP delivery).
-
-
Example request
<SiteLockOnlineRequest>
<authentication>
<user>Username</user>
<password>Password</password>
</authentication>
<loginProtectAddUser>
<site_id>49030000</site_id>
<email>[email protected]</email>
<name>Username</name>
<phone>1-7345555555</phone>
</loginProtectAddUser>
</SiteLockOnlineRequest>