This API allows more privileged users to manage users within the Cxense Advertising system. To create and invite new users, control which sections of the Folder tree they should be granted access to and the operations they should be allowed to perform there.
Individual users
The GET, PUT, and DELETE operations are supported for individual users.
GET
Retrieve an existing user in the XML format described below. Throws an error if a user with the specified userId does not exist.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
-
userId - the unique id for the user to be retrieved.
This XML example shows the contents returned from a typical GET call:
|
Example command:
|
PUT
Update the contents of an existing user with data taken from the request payload. Throws an error if the userId does not exist.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
-
userId - the unique id for the user to be retrieved.
This XML example shows the contents required to be supplied for a PUT call (note: neither a user's username nor their password can be updated once they have been created, if either of these values are included in the PUT request payload they will be ignored):
|
Example command:
|
DELETE
Remove an existing user.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
-
userId - the unique id for the user to be deleted.
Example command:
|
Retrieving the list of existing users
The GET operation is supported for existing users.
GET
Retrieve the list of existing users that the currently authenticated user is authorised to read and/or modify.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
This XML example shows the contents returned from a typical GET call:
|
Example command:
|
Retrieving the list of available Groups
The GET operation is supported for available groups.
GET
Retrieve the list of groups that the currently authenticated user is authorised to manage.
When adding new users (see the Inviting a new user and Creating a new user sections below) the group(s) that are to be assigned to the new user are specified in the request XML payload. The current user is only allowed to assign new users to those groups that they themselves are authorised to manage, the list of which can be retrieved using this API method call.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
This XML example shows the contents returned from a typical GET call:
|
Example command:
|
Inviting a new user
The POST operation is supported for inviting a new user.
POST
Add a new user to Cxense Advertising and invite them to the home container of the currently authenticated user.
For more information on inviting a new user please refer to Invite User.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
This XML example shows the contents required to be supplied for a POST call:
|
In order to avoid a notification email being sent to the new user the sendEmailNotification element must be specified in the request XML with a value of "false". If not specified this value will default to "true" and an email will be sent to the provided email address informing the user that they have been invited to join the Cxense Advertising system and directing them to a Cxense Advertising page where they must complete their registration.
When sendEmailNotification is set to true only the username and email fields are required in the request payload.
When sendEmailNotification is set to false ALL fields required for a Cxense Advertising User must be included in the request payload (as per the example above).
Example command:
|
Creating a new user
The POST operation is supported for creating a new user.
POST
Add a new user to Cxense Advertising as a sub-user of the currently authenticated user.
For more information on creating a new user please refer to Creating a New User.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
This XML example shows the contents required to be supplied for a POST call:
|
User role selection
When selecting the roles that your new user is to be created with, please note that the Advertising Analyst (ADANALYST), Full Service Advertiser (FULLSERVAD) and Full Service Publisher (FULLSERVPUB) roles are treated as "Invite Only".
This means that a user cannot be created with only one or more of these roles. They can be created with any of the other roles as well as one or more of these Invite Only roles but they cannot be created with just Invite Only role(s).
The reason being that Invite Only roles are effectively read-only, they do not provide the user with the ability to create any inventory in the system. Creating a user with only these roles would add them to Cxense Advertising in a new, empty home container in which they would be unable to perform any actions making their account, effectively, non-functional.
In order to avoid a notification email being sent to the new user the sendEmailNotification element must be specified in the request XML with a value of "false". If not specified this value will default to "true" and an email will be sent to the provided email address informing the user that they have been created in the Cxense Advertising system and directing them to a Cxense Advertising page where they must complete their registration.
When sendEmailNotification is set to true only the username and email fields are required in the request payload.
When sendEmailNotification is set to false ALL fields required for a Cxense Advertising User must be included in the request payload (as per the example above).
Example command:
|
Reseting a user's password
The PUT operation is supported for reseting the password for a particular user.
PUT
Update a particular user's password to a new value. Throws an error if the user performing the operation is not authorised to modify the nominated user.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
-
userId - the unique id for the user whose password is to be reset
This XML example shows the contents required to be supplied for a PUT call:
|
Example command:
|
Changing the current user's password
The PUT operation is supported for changing the password of the user accessing the REST API.
PUT
Update the current user's password from an its current, or "old", value to a new value. Throws an error if the provided old password value is not correct.
|
Parameters:
-
cxadbaseurl - the base URL of the Cxense Advertising system
This XML example shows the contents required to be supplied for a PUT call:
Click to view XML example
|
Example command:
|