HTTP | URL | Parameters | Description | Response |
---|---|---|---|---|
GET | /api/public/users | Optional Parameters
|
Provide a list of all users | A list of users |
POST | /api/public/users | Required Parameters
Optional Parameters
|
Add a new User to Viewpoint. The new user can be either externally authenticated or local. If the viewpoint user submitting the request has the role: VP_User_Manager, only own role or roles created by it can be added to the new user.
|
When successful, the response will be OK. When unsuccessful, the response will be 400 for bad requests and 401 for unauthorized requests. |
GET | /api/public/users/{username} | username in url | Get a user from Viewpoint | When successful, the response will be OK. When unsuccessful, the response will be 400 for bad requests, 401 for unauthorized requests, or 404 NOT Found if there is no such user. |
PUT | /api/public/users/{username} | Path Variable
Required Parameters
Optional Parameters
|
Update the specified user. The full state of the user must be provided in the request, with the following exceptions:
If the viewpoint user submitting the request has the role: VP_User_Manager, only own role or roles created by it can be added to the existing user. Existing roles which are not owned by VP_User_Manager remains unchanged.
|
When successful, the response will be OK. When unsuccessful, the response will be 400 for bad requests and 401 for unauthorized requests. |
PUT | /api/public/users/{username}?changePassword | Path Variable
Required Parameter
|
Password change
|
When successful, the response will be OK. When unsuccessful, the response will be 400 for bad requests and 401 for unauthorized requests. |
DELETE | /api/public/users/{username} | Path Variable
|
Delete an existing user from Viewpoint | When successful, the response will be OK |
DELETE | /api/public/users/audit/{username} | Path Variable
|
Delete user details audit trail for a user | When successful, the response will be OK |