PrivX local users
/local-user-store/api/v1/usersGet all users.
offsetintCollection query offset
limitintMaximum number of collection items to return
usernamestringThe username of the user
idstringThe ID of the user
Successful response, returns an array of users, returns an empty array if no users found
{
"count": 123,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"tags": [
"string"
],
"username": "string",
"windows_account": "string",
"unix_account": "string",
"full_name": "string",
"display_name": "string",
"job_title": "string",
"company": "string",
"department": "string",
"email": "string",
"telephone": "string",
"locale": "fi_FI",
"password": {
"password": "string",
"created": "2017-01-01T15:05:05Z"
},
"password_change_required": true,
"attributes": [
{
"key": "windows_sid",
"value": "some_value"
}
]
}
]
}/local-user-store/api/v1/usersCreate a new user.
commentstringA comment describing the object
tagsarrayArray of tag strings
usernamestringrequired
A unique principal name for the user, a username or an email address
windows_accountstringWindows account name
unix_accountstringUnix account name
full_namestringFull name
display_namestringDisplay name
job_titlestringJob title
companystringCompany
departmentstringDepartment
emailstringEmail address
telephonestringPhone number
localestringUser's locale. Language code ISO 639-1 & country code ISO 3166-1 separated by a "_"
passwordobject (password)passwordstringrequired
Password
createdstringWhen the password was created
attributesarraya list of user attributes in key/value string format
keystringthe name of the user attribute
valuestringthe value of the user attribute
{
"comment": "A comment",
"tags": [
"string"
],
"username": "string",
"windows_account": "string",
"unix_account": "string",
"full_name": "string",
"display_name": "string",
"job_title": "string",
"company": "string",
"department": "string",
"email": "string",
"telephone": "string",
"locale": "fi_FI",
"password": {
"password": "string",
"created": "2017-01-01T15:05:05Z"
},
"attributes": [
{
"key": "windows_sid",
"value": "some_value"
}
]
}User successfully created
{
"id": "5bf77342-221c-11ee-be56-0242ac120002"
}/local-user-store/api/v1/users/{user_id}Get a user by ID.
user_idstringrequired
User ID
Successful response, returns a user object
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"created": "2017-01-01T15:05:05Z",
"updated": "2017-01-01T15:05:05Z",
"updated_by": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"author": "eef4aefc-d64e-4c2c-aba4-4914c86ce059",
"comment": "A comment",
"tags": [
"string"
],
"username": "string",
"windows_account": "string",
"unix_account": "string",
"full_name": "string",
"display_name": "string",
"job_title": "string",
"company": "string",
"department": "string",
"email": "string",
"telephone": "string",
"locale": "fi_FI",
"password": {
"password": "string",
"created": "2017-01-01T15:05:05Z"
},
"password_change_required": true,
"attributes": [
{
"key": "windows_sid",
"value": "some_value"
}
]
}/local-user-store/api/v1/users/{user_id}Update a user by ID.
commentstringA comment describing the object
tagsarrayArray of tag strings
usernamestringrequired
A unique principal name for the user, a username or an email address
windows_accountstringWindows account name
unix_accountstringUnix account name
full_namestringFull name
display_namestringDisplay name
job_titlestringJob title
companystringCompany
departmentstringDepartment
emailstringEmail address
telephonestringPhone number
localestringUser's locale. Language code ISO 639-1 & country code ISO 3166-1 separated by a "_"
passwordobject (password)passwordstringrequired
Password
createdstringWhen the password was created
attributesarraya list of user attributes in key/value string format
keystringthe name of the user attribute
valuestringthe value of the user attribute
{
"comment": "A comment",
"tags": [
"string"
],
"username": "string",
"windows_account": "string",
"unix_account": "string",
"full_name": "string",
"display_name": "string",
"job_title": "string",
"company": "string",
"department": "string",
"email": "string",
"telephone": "string",
"locale": "fi_FI",
"password": {
"password": "string",
"created": "2017-01-01T15:05:05Z"
},
"attributes": [
{
"key": "windows_sid",
"value": "some_value"
}
]
}User successfully updated
Empty response
/local-user-store/api/v1/users/{user_id}Delete a user by ID.
user_idstringrequired
User ID
User successfully deleted
Empty response
/local-user-store/api/v1/users/{user_id}/passwordSet user's password
passwordstringrequired
Password
createdstringWhen the password was created
{
"password": "string",
"created": "2017-01-01T15:05:05Z"
}Password successfully changed
Empty response
/local-user-store/api/v1/users/tagsGet all of user's tags.
offsetintCollection query offset
limitintMaximum number of collection items to return
sortdirstringSort direction, asc or desc
querystringQuery string matches the tags
Received list of host's tags
[
"string"
]Was this page helpful?