Users
A user is a person associated with a customer account with access to one or more geozones associated with at least one SmartServer IoT license.
URI Definition
Method | URI and Fields |
GET | /iap/users |
Returns different results based on passed parameters. Returns the user with the specified ID if the Id parameter is not equal to null. Returns the user with the specified name if the Id parameter is null and userName parameter is not null. If both Id and userName parameters are null, then all users are returned. Returns the specific user or NOT_FOUND, if either Id or userName is specified. Returns all users otherwise. Query Parameters
Success ResponseSpecific user or NOT_FOUND if either id or userName specified. Returns all users otherwise. Example
| |
/iap/users/count | |
Returns the number of users that the current user has the permission to see. Success ResponseNumber of users. Example
| |
/iap/users/current | |
Returns the user associated with the current session. Success ResponseCurrent user. Example
| |
/iap/users/list | |
Returns the supported locales. Success ResponseCollection of locales. Example
| |
/iap/users/locale | |
Returns the locale of the current user session. Success ResponseCurrent locale. Example
| |
/iap/users/{Id}/customer | |
Returns the parent customer to which the user belongs. The currently logged in user must be a member of the same customer, or the currently logged-in user must be the administrator. Note, this is ONLY useful if the currently logged-in user is the administrator, which can see all users of all customers. Parameter
Success ResponseCustomer information for a scpecified user. Example
| |
PUT | /iap/users |
Updates an existing user with the specified properties. Request PayloadThe request payload must contain the user properties to update. Success ResponseReturns updated user. Example
| |
/iap/users/count | |
Accepts license for current user. This operation is need to be done only to following user types: user manager, owner, admin. All other types of users doesn't need to accept license agreement. User is prohibited to use any other restful API methods before he accepts license agreement except for login and logout methods. Success ResponseEmpty. Example
| |
/iap/users/cp | |
Changes a user's password. Request PayloadThe request payload must contain the user name, current password and the new password. Success ResponseEmpty. Example
| |
/iap/users/acceptlicense | |
Accepts the license for the current user. This operation is required only for the following user types: user manager, owner, and admin. For all other types of users, you do not need to accept the license agreement. Any attempt to use other REST API methods before accepting the license agreement will result in an error (such as a 404 or 500, etc.), except for login and logout methods. | |
POST | /iap/users |
Creates a new user with the specified properties. Request PayloadThe request payload must contain the userDTO with the password provided Success ResponseSuccessfully created user. Example
| |
/iap/users/locale | |
Changes the locale of the current user session. Success ResponseEmpty. Example
| |
DELETE | /iap/users/{id} |
Deletes from the CMS, the user with the specified ID. Parameters
Success ResponseEmpty. Example
|
Query Parameters
Optional query parameters can be used with your REST request. Specifying queries is described under Queries and Parameters, Path Parameters, and Query Parameters.