User Management
5 min
Add User
POST
http://{{hostname}}/aioc-rest-web/rest/user/saveUser
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/saveUser");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n\t\"internal\":true,\n\"personelId\":\"123123\",\"name\":\"test\",\"surname\":\"user\",\"eid\":\"testuser\",\"email\":\"[email protected]\",\"phoneNumber\":\"5550000000\",\"groups\":[\"DEFAULT_GROUP_SYSYEM_USERS\", \"DEFAULT_GROUP_SYSYEM_ADMINS\"], \"password\":\"admin\", \"passwordAlgorithm\":\"MD5\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/user/saveUser' \
--header 'Content-Type: application/json' \
--data-raw '{
"internal":true,
"personelId":"123123","name":"test","surname":"user","eid":"testuser","email":"[email protected]","phoneNumber":"5550000000","groups":["DEFAULT_GROUP_SYSYEM_USERS", "DEFAULT_GROUP_SYSYEM_ADMINS"], "password":"admin", "passwordAlgorithm":"MD5"}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/saveUser",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"internal":true,"personelId":"123123","name":"test","surname":"user","eid":"testuser","email":"[email protected]","phoneNumber":"5550000000","groups":["DEFAULT_GROUP_SYSYEM_USERS","DEFAULT_GROUP_SYSYEM_ADMINS"],"password":"admin","passwordAlgorithm":"MD5"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"id": "3c040987-adb7-45ab-9a50-264f04fbe13a",
"eid": "testuser",
"personelId": "123123",
"name": "test",
"passwordAlgorithm": "MD5",
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": null,
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}
Get User Details By Id
GET
http://{{hostname}}/aioc-rest-web/rest/user/detail/USERID
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/detail/USERID");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname}}/aioc-rest-web/rest/user/detail/USERID' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/detail/USERID",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"id": "a177be61-8850-4f03-be1c-3ce275f02c1f",
"eid": "testuser",
"personelId": "123123",
"name": "test",
"passwordAlgorithm": "MD5",
"password": "202cb962ac59075b964b07152d234b70",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50",
"forcePasswordChangeOnNextLogin": "true"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": [],
"lastLogin": null,
"lastLoginIp": "10.20.50.66",
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": true,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}Logged on User List
GET
http://{{hostname}}/aioc-rest-web/rest/user/getActiveSessionsOfUsers
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/getActiveSessionsOfUsers");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname}}/aioc-rest-web/rest/user/getActiveSessionsOfUsers' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/getActiveSessionsOfUsers",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"sessionId": "01b54866-42ff-456d-ab0f-a8672a96d24c",
"userId": "cdc00366-56b6-4874-bd8b-7862549510ab",
"sessionTime": 1548401553405,
"lastActivityTime": 1548401559298,
"properties": {
"password": "6Qdv8VzoWPONvvptBFCtkg==",
"auth": "testuser",
"ifSystemLiUser": "NotLiUser",
"clientIp": "10.20.50.237"
},
"userEid": "testuser"
}
]Get Current Session User
GET
http://{{hostname}}/aioc-rest-web/rest/user/
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname}}/aioc-rest-web/rest/user/' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"id": "a177be61-8850-4f03-be1c-3ce275f02c1f",
"userName": "testuser",
"email": "[email protected]",
"functions": [
"single.connect.macfiltering.moduleVisibility",
"single.connect.sapm.admin",
"single.connect.warp.report.viewer",
"netright.user.auth.log.moduleVisibility",
"aioc.platform.sysconfig.moduleVisibility",
"netright.realms.moduleVisibility",
"single.connect.tacacs.acc.moduleVisibility",
"cp.edit_all_users_workflow.function",
"netright.memory.moduleVisibility",
"single.connect.sapm.secondlevel.admin",
"netright.users.moduleVisibility",
"single.connect.setup.wizard.moduleVisibility",
"single.connect.sapm.network.admin",
"aioc.users.manage.user_group",
"netright.siem.configuration.moduleVisibility",
"single.connect.superset.moduleVisibility",
"single.connect.policy.enforcement.moduleVisibility",
"single.connect.sapm.configuration.admin",
"single.connect.sapm.secondlevel.approval.requirement",
"aioc.cp.workflow.manager.moduleVisibility",
"aioc.cp.script.builder.ui.moduleVisibility",
"aioc.discovery.manage.unassigned",
"single.connect.sql.proxy.moduleVisibility",
"sc.aaa.remote.db.moduleVisibility",
"netright.sql.moduleVisibility",
"aioc.users.approve.finalApproval",
"netright.admin.datasource.manager.moduleVisibility",
"aioc.discovery.discover.device",
"single.connect.reports.ui.moduleVisibility",
"single.connect.freeradius.acc.moduleVisibility",
"single.connect.diagnostic.moduleVisibility",
"aioc.command.player.moduleVisibility",
"aioc.element.type.moduleVisibility",
"single.connect.cli.moduleVisibility",
"aioc.platform.activity.logs.moduleVisibility",
"sc.secret.data.vault.admin",
"single.connect.session.active.logs.moduleVisibility",
"cp.save_template.function",
"single.connect.sapm.log.viewer",
"single.connect.warp.configuration.viewer",
"netright.commands.moduleVisibility",
"single.connect.warp.dashboard.viewer",
"aioc.cp.script.player.ui.moduleVisibility",
"single.connect.user.logs.moduleVisibility",
"aioc.device.group.show.secrets",
"single.connect.freeradius.802dot1x.moduleVisibility",
"sc.devops.moduleVisibility",
"aioc.users.approve.all_user",
"netright.jobs.moduleVisibility",
"single.connect.rdp.disallow.hiding.keys",
"sc.log.search.network.admin",
"single.connect.twofactor.acc.moduleVisibility",
"single.connect.sapm.sms.moduleVisibility",
"cp.history_see_all_users_workflow.function",
"aioc.system.backup.moduleVisibility",
"single.connect.dasboard.moduleVisibility",
"single.connect.sapm.approval.requirement",
"single.connect.sshkeys.moduleVisibility",
"sc.script.builder.super.user",
"single.connect.sapm.historical.password.viewer",
"cp.run_command.function",
"netright.user.approval.moduleVisibility",
"single.connect.sessionmanager.ui.moduleVisibility",
"aioc.help.manager.moduleVisibility",
"aioc.users.manage.user",
"aioc.discovery.manage.operationMode",
"netright.config.moduleVisibility",
"single.connect.httpProxy.ui.moduleVisibility",
"sc.cloud.integration.moduleVisibility",
"cp.schedule_command.function",
"single.connect.rdp.client.moduleVisibility",
"single.connect.aapm.moduleVisibility",
"aioc.cp.workflow.history.moduleVisibility",
"netright.components.moduleVisibility",
"single.connect.sapm.secondlevel.network.admin",
"sc.secret.data.vault.moduleVisibility",
"single.connect.instanceController.moduleVisibility",
"cp.rollback_all_users_workflow.function",
"single.connect.assigned.credential.moduleVisibility",
"single.connect.sapm.moduleVisibility",
"tfaProvisioningViewer",
"sc.ssh.keys.provisioning.viewer",
"single.connect.linux.audit.report.moduleVisibility",
"single.connect.windows.audit.report.moduleVisibility",
"netright.bulkimport.moduleVisibility",
"sc.tacacs.management.moduleVisibility",
"netright.discovery.moduleVisibility",
"netright.log.moduleVisibility",
"aioc.device.group.moduleVisibility",
"single.connect.workflow.editor.acc.moduleVisibility",
"single.connect.remote.desktop.app.moduleVisibility",
"single.connect.freeradius.rest.moduleVisibility",
"cp.rollback_own_workflow.function",
"netright.mailSender.moduleVisibility",
"single.connect.remote.desktop.moduleVisibility",
"sc.log.search.skip.realm",
"sc.sensitive.data.discovery.moduleVisibility",
"sc.secret.data.vault.group.admin"
],
"inSupervisorGroup": true,
"admin": false
}Update User
POST
http://{{hostname}}/aioc-rest-web/rest/user/saveUser
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/saveUser");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"id\": \"a177be61-8850-4f03-be1c-3ce275f02c1f\",\n \"eid\": \"testuser\",\n \"personelId\": \"123123\",\n \"name\": \"test\",\n \"passwordAlgorithm\": \"SHA256\",\n \"password\": \"123\",\n \"email\": \"[email protected]\",\n \"surname\": \"user\",\n \"internal\": true,\n \"properties\": {\n \"phoneNumber\": \"5550000000\",\n \"ubaThreshold\": \"50\"\n },\n \"groups\": [\n \"DEFAULT_GROUP_SYSYEM_ADMINS\",\n \"DEFAULT_GROUP_SYSYEM_USERS\"\n ],\n \"managerGroups\": [],\n \"lastLogin\": null,\n \"lastLoginIp\": null,\n \"recordLimit4Search\": null,\n \"passwordDirty\": true,\n \"passwordAutoGenerated\": false,\n \"phoneNumber\": \"5550000000\",\n \"forceChangePasswordOnNextLogin\": false,\n \"lockReason\": null,\n \"unlockOnPasswordChanged\": false,\n \"unlockTime\": null,\n \"tempUserEndTime\": null,\n \"tempUserStartTime\": null,\n \"tempUser\": false,\n \"externalDirectorySource\": null,\n \"userPropertyKey4Search\": null,\n \"userPropertyValue4Search\": null,\n \"locked\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/user/saveUser' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "a177be61-8850-4f03-be1c-3ce275f02c1f",
"eid": "testuser",
"personelId": "123123",
"name": "test",
"passwordAlgorithm": "SHA256",
"password": "123",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": [],
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": true,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/saveUser",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"id":"a177be61-8850-4f03-be1c-3ce275f02c1f","eid":"testuser","personelId":"123123","name":"test","passwordAlgorithm":"SHA256","password":"123","email":"[email protected]","surname":"user","internal":true,"properties":{"phoneNumber":"5550000000","ubaThreshold":"50"},"groups":["DEFAULT_GROUP_SYSYEM_ADMINS","DEFAULT_GROUP_SYSYEM_USERS"],"managerGroups":[],"lastLogin":null,"lastLoginIp":null,"recordLimit4Search":null,"passwordDirty":true,"passwordAutoGenerated":false,"phoneNumber":"5550000000","forceChangePasswordOnNextLogin":false,"lockReason":null,"unlockOnPasswordChanged":false,"unlockTime":null,"tempUserEndTime":null,"tempUserStartTime":null,"tempUser":false,"externalDirectorySource":null,"userPropertyKey4Search":null,"userPropertyValue4Search":null,"locked":false}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"id": "cdc00366-56b6-4874-bd8b-7862549510ab",
"eid": "testuser",
"personelId": "123123",
"name": "testtest",
"passwordAlgorithm": "MD5",
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": null,
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}Delete Users
POST
http://{{hostname}}/aioc-rest-web/rest/user/deleteUsers
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/deleteUsers");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\"f311d515-1a64-468b-bffb-0035ac15b28e\"]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/user/deleteUsers' \
--header 'Content-Type: application/json' \
--data-raw '["f311d515-1a64-468b-bffb-0035ac15b28e"]'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/deleteUsers",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(["f311d515-1a64-468b-bffb-0035ac15b28e"]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
true
}
Lock Users
POST
http://{{hostname}}/aioc-rest-web/rest/user/lockUsers/reasonToLockThem
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/lockUsers/reasonToLockThem");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\"cdc00366-56b6-4874-bd8b-7862549510ab\"]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/user/lockUsers/reasonToLockThem' \
--header 'Content-Type: application/json' \
--data-raw '["cdc00366-56b6-4874-bd8b-7862549510ab"]'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/lockUsers/reasonToLockThem",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(["cdc00366-56b6-4874-bd8b-7862549510ab"]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"id": "cdc00366-56b6-4874-bd8b-7862549510ab",
"eid": "testuser",
"personelId": "123123",
"name": "testtest",
"passwordAlgorithm": "MD5",
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50",
"lockReason": "Locked by admin",
"forcePasswordChangeOnNextLogin": "true",
"isLocked": "true"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": [],
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": true,
"lockReason": "Locked by admin",
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": true
}
]
Unlock Users
POST
http://{{hostname}}/aioc-rest-web/rest/user/unlockUsers/reasonToLockThem
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/unlockUsers/reasonToLockThem");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\"a177be61-8850-4f03-be1c-3ce275f02c1f\"]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/user/unlockUsers/reasonToLockThem' \
--header 'Content-Type: application/json' \
--data-raw '["a177be61-8850-4f03-be1c-3ce275f02c1f"]'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/unlockUsers/reasonToLockThem",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(["a177be61-8850-4f03-be1c-3ce275f02c1f"]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"id": "a177be61-8850-4f03-be1c-3ce275f02c1f",
"eid": "testuser",
"personelId": "123123",
"name": "test",
"passwordAlgorithm": "MD5",
"password": "202cb962ac59075b964b07152d234b70",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50",
"forcePasswordChangeOnNextLogin": "true"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": [],
"lastLogin": null,
"lastLoginIp": "10.20.50.66",
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": true,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}
]
Add/Change User's Groups
POST
http://{{hostname}}/aioc-rest-web/rest/user/saveUser
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/saveUser");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"id\": \"a177be61-8850-4f03-be1c-3ce275f02c1f\",\n \"eid\": \"testuser\",\n \"personelId\": \"123123\",\n \"name\": \"test\",\n \"passwordAlgorithm\": \"MD5\",\n \"password\": \"21232f297a57a5a743894a0e4a801fc3\",\n \"email\": \"[email protected]\",\n \"surname\": \"user\",\n \"internal\": true,\n \"properties\": {\n \"phoneNumber\": \"5550000000\",\n \"ubaThreshold\": \"50\"\n },\n \"groups\": [\n \"DEFAULT_GROUP_SYSYEM_ADMINS\",\n \"DEFAULT_GROUP_SYSYEM_USERS\"\n ],\n \"managerGroups\": [],\n \"lastLogin\": null,\n \"lastLoginIp\": null,\n \"recordLimit4Search\": null,\n \"passwordDirty\": false,\n \"passwordAutoGenerated\": false,\n \"phoneNumber\": \"5550000000\",\n \"forceChangePasswordOnNextLogin\": false,\n \"lockReason\": null,\n \"unlockOnPasswordChanged\": false,\n \"unlockTime\": null,\n \"tempUserEndTime\": null,\n \"tempUserStartTime\": null,\n \"tempUser\": false,\n \"externalDirectorySource\": null,\n \"userPropertyKey4Search\": null,\n \"userPropertyValue4Search\": null,\n \"locked\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname}}/aioc-rest-web/rest/user/saveUser' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "a177be61-8850-4f03-be1c-3ce275f02c1f",
"eid": "testuser",
"personelId": "123123",
"name": "test",
"passwordAlgorithm": "MD5",
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": [],
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/saveUser",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"id":"a177be61-8850-4f03-be1c-3ce275f02c1f","eid":"testuser","personelId":"123123","name":"test","passwordAlgorithm":"MD5","password":"21232f297a57a5a743894a0e4a801fc3","email":"[email protected]","surname":"user","internal":true,"properties":{"phoneNumber":"5550000000","ubaThreshold":"50"},"groups":["DEFAULT_GROUP_SYSYEM_ADMINS","DEFAULT_GROUP_SYSYEM_USERS"],"managerGroups":[],"lastLogin":null,"lastLoginIp":null,"recordLimit4Search":null,"passwordDirty":false,"passwordAutoGenerated":false,"phoneNumber":"5550000000","forceChangePasswordOnNextLogin":false,"lockReason":null,"unlockOnPasswordChanged":false,"unlockTime":null,"tempUserEndTime":null,"tempUserStartTime":null,"tempUser":false,"externalDirectorySource":null,"userPropertyKey4Search":null,"userPropertyValue4Search":null,"locked":false}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"id": "a177be61-8850-4f03-be1c-3ce275f02c1f",
"eid": "testuser",
"personelId": "123123",
"name": "test",
"passwordAlgorithm": "MD5",
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": [],
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}
Get All Users
GET
http://{{hostname}}/aioc-rest-web/rest/user/search
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/search");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname}}/aioc-rest-web/rest/user/search'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/search",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin",
"personelId": null,
"name": "Administrator",
"passwordAlgorithm": null,
"password": null,
"email": "[email protected]",
"surname": "Administrator",
"internal": true,
"properties": {
"ubaThreshold": "50",
"phoneNumber": "053xxxxxx"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_USERS",
"b5f97131-344f-40a9-baed-b4ac88bee9ed",
"DEFAULT_GROUP_SYSYEM_ADMINS",
"1bd23223-8418-4e08-9f8c-0cbf2a9c580a"
],
"managerGroups": [
"b5f97131-344f-40a9-baed-b4ac88bee9ed",
"1bd23223-8418-4e08-9f8c-0cbf2a9c580a"
],
"lastLogin": 1614296865371,
"lastLoginIp": "10.xx.xx.xx",
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"filterFunctionName": null,
"filterMembershipUserId": null,
"filterManagerId": null,
"filterEidList": null,
"filterManagerOfUserId": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"phoneNumber": "05301494892",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"locked": false
}
]