Share

Import & Export Users

Import UsersExport Users

API: Import Users Into ServiceView

Users can be imported into ServiceView using the following API:

http://<serviceview_url>/put_users.php?data=<data>&secret=<secret>

Parameters

<data>JSON encoded data containing the users to import
<secret>The value of the SECRET option set in the options setup section.

Returns

JSON array containing the following fields:

UsersProcessedNumber of users processed
UsersAddedNumber of new users added
UsersChangedNumber of existing users modified
ErrorCountNumber of errors encountered
ErrorMsgsErrors encounted
WarningMsgsWarning messages
DigestLog of activity

Comments

The HTTP request can either be sent using a HTTP GET or POST request.

API: Export Users From ServiceView

Users can be exported from ServiceView using the following API:

http://<serviceview_url>/get_users.php?xml=<xml>&secret=<secret>

Parameters

<xml>Set to 1 to export in XML, otherwise JSON is returned
<secret>The value of the SECRET option set in the options setup section.

Returns

JSON or XML encoded nulti-dimentional array containing users following fields:

user_idInternal ServiceView reference to the user
usernameUsername
nameName
email_addressEmail Address
mobile_noMobile Number
local_passwordHas user got a local password (yes/no)

Comments

The HTTP request can either be sent using a HTTP GET or POST request.