User Provisioning Summary

An overview of the User Provisioning API endpoints, including authentication requirements, accepted parameters, and standard XML responses.

Some Glance customers manage their users' registration via requests into the Glance server. This can be an effective way to manage your users, especially if you have many of them. To do this, you make HTTPS requests to the Glance website.

These requests are designed to be made either:

  • By some program on your server, or
  • Via requests made from the users' browsers from links or forms on pages served by your website.

You must not use unencrypted HTTP requests; only HTTPS requests are allowed.

Operations

The API request endpoints are:

OperationDescription
NewUserCreates a new user account
UpdateUserUpdates an existing user account
DeleteUserDeletes an existing user account
ShowUsersRetrieves information about one or more users
ShowRolesRetrieves a list of the roles you have enabled, if any

Parameters

You access the endpoints in this API using HTTPS POST requests, passing the parameters as HTML form field values.

Security Warning
It is possible to use this API via GET requests. But we strongly discourage doing so because some parameters contain passwords. Web servers log GET requests including passwords and other parameters, which is extremely insecure.

Authentication

When making requests to these operations you must include authentication parameters.

ParameterData typeRequirement
PartnerLoginGlance user nameRequired
PartnerPWText stringEither PartnerPW or PartnerAuth is required
PartnerAuthLoginKeyEither PartnerPW or PartnerAuth is required
PartnerIDgroupIDOptional

PartnerLogin: The Glance user name of an active administrative user. Glance assigns this user name. It is an error (see response handling below) if an unknown or inactive partner name is supplied. Notice that Glance user names are not email addresses: they look like admin.example.glance.net, not admin@example.glance.net.

PartnerPW: The password for the PartnerLogin. Either PartnerPW or PartnerAuth is required.

PartnerAuth: An alternate authentication using a time-limited LoginKey for the PartnerLogin account. See the LoginKey document for information on generating this parameter.

PartnerID: An optional parameter of the group ID that the action is intended to take place on. If your admin user is in multiple groups, you must specify a partner ID.

Redirection

You may include URL parameters to cause the web service to redirect its client. These parameters are deprecated and may be removed in a future API release.

ParameterData typeStatus
OKURLURLDeprecated, Optional
FailURLURLDeprecated, Optional

OKURL: (deprecated, optional) If the operation succeeds, the web service redirects its client (via a 302 status code and Redirect header) to this URL. (The NewUser operation may add parameters to this redirection URL.)

FailURL: (deprecated, optional) If the NewUser operation fails, the web service redirects its client to this URL.

Responses

Success

Upon success, operations in this web service return this XML document:

XML
<?xml version="1.0" standalone="yes"?>
<response>
  <status>OK</status>
</response>

Failure

Upon failure, the operations in this API return an XML document like this one:

XML
<?xml version="1.0" standalone="yes"?>
<response>
  <status>FAIL</status>
  <errcode>13001</errcode>
  <msg>Required field not supplied</msg>
  <field>PartnerLogin</field>
</response>

Possible <errcode> and <msg> values are these. If the failure relates to a parameter, its name appears in the <field> value.

errcodemsgDescription
13001Required field not supplied
13002Bad field valueThe data you provided was formatted incorrectly
13003Login failedThe PartnerLogin / PartnerPW combination was incorrect
13003User not adminThe PartnerLogin user must be an account administrator
13003Authorization failedThe PartnerAuth LoginKey was incorrect
13004Address already existsThe UserAddress you chose is already in use
13005Glance Address is not availableThe UserAddress you chose is reserved
13005User does not existThe user you requested is not registered in Glance
13005Password must be at least eight charactersThe UserPW does not meet password complexity requirements
13006Could not provision audio
13007User limit reachedYou cannot provision any more users
13999PartnerAuth not supportedYour account does not accept LoginKeys