User Group Management
3 min
Add User Group
POST
http://{{hostname}}/aioc-rest-web/rest/user/saveUserGroup
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/saveUserGroup");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n\t\"eid\": \"MyGroup\",\n\t\"description\": \"user group for test purpose\",\n\t\"passwordTtl\": \"90\",\n\t\"users\": [\n\t\t{\n\t\t\t\"id\": \"a177be61-8850-4f03-be1c-3ce275f02c1f\",\n\t\t\t\"eid\": \"testuser\",\n\t\t\t\"personelId\": \"123123\",\n\t\t\t\"name\": \"test\",\n\t\t\t\"passwordAlgorithm\": \"SHA256\",\n\t\t\t\"password\": \"123\",\n\t\t\t\"email\": \"[email protected]\",\n\t\t\t\"surname\": \"user\",\n\t\t\t\"internal\": true,\n\t\t\t\"properties\": {\n\t\t\t\t\"phoneNumber\": \"5550000000\",\n\t\t\t\t\"ubaThreshold\": \"50\"\n\t\t\t},\n\t\t\t\"groups\": [\n\t\t\t\t\"DEFAULT_GROUP_SYSYEM_ADMINS\",\n\t\t\t\t\"DEFAULT_GROUP_SYSYEM_USERS\"\n\t\t\t],\n\t\t\t\"managerGroups\": [],\n\t\t\t\"lastLogin\": null,\n\t\t\t\"lastLoginIp\": null,\n\t\t\t\"recordLimit4Search\": null,\n\t\t\t\"passwordDirty\": true,\n\t\t\t\"passwordAutoGenerated\": false,\n\t\t\t\"phoneNumber\": \"5550000000\",\n\t\t\t\"forceChangePasswordOnNextLogin\": false,\n\t\t\t\"lockReason\": null,\n\t\t\t\"unlockOnPasswordChanged\": false,\n\t\t\t\"unlockTime\": null,\n\t\t\t\"tempUserEndTime\": null,\n\t\t\t\"tempUserStartTime\": null,\n\t\t\t\"tempUser\": false,\n\t\t\t\"externalDirectorySource\": null,\n\t\t\t\"userPropertyKey4Search\": null,\n\t\t\t\"userPropertyValue4Search\": null,\n\t\t\t\"locked\": false\n\t\t}\n\t],\n\t\"managers\": [\n\t\t{\n\t\t\t\"id\": \"a177be61-8850-4f03-be1c-3ce275f02c1f\",\n\t\t\t\"eid\": \"testuser\",\n\t\t\t\"personelId\": \"123123\",\n\t\t\t\"name\": \"test\",\n\t\t\t\"passwordAlgorithm\": \"SHA256\",\n\t\t\t\"password\": \"123\",\n\t\t\t\"email\": \"[email protected]\",\n\t\t\t\"surname\": \"user\",\n\t\t\t\"internal\": true,\n\t\t\t\"properties\": {\n\t\t\t\t\"phoneNumber\": \"5550000000\",\n\t\t\t\t\"ubaThreshold\": \"50\"\n\t\t\t},\n\t\t\t\"groups\": [\n\t\t\t\t\"DEFAULT_GROUP_SYSYEM_ADMINS\",\n\t\t\t\t\"DEFAULT_GROUP_SYSYEM_USERS\"\n\t\t\t],\n\t\t\t\"managerGroups\": [],\n\t\t\t\"lastLogin\": null,\n\t\t\t\"lastLoginIp\": null,\n\t\t\t\"recordLimit4Search\": null,\n\t\t\t\"passwordDirty\": true,\n\t\t\t\"passwordAutoGenerated\": false,\n\t\t\t\"phoneNumber\": \"5550000000\",\n\t\t\t\"forceChangePasswordOnNextLogin\": false,\n\t\t\t\"lockReason\": null,\n\t\t\t\"unlockOnPasswordChanged\": false,\n\t\t\t\"unlockTime\": null,\n\t\t\t\"tempUserEndTime\": null,\n\t\t\t\"tempUserStartTime\": null,\n\t\t\t\"tempUser\": false,\n\t\t\t\"externalDirectorySource\": null,\n\t\t\t\"userPropertyKey4Search\": null,\n\t\t\t\"userPropertyValue4Search\": null,\n\t\t\t\"locked\": false\n\t\t}\n\t]\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/saveUserGroup' \
--header 'Content-Type: application/json' \
--data-raw '{
"eid": "MyGroup",
"description": "user group for test purpose",
"passwordTtl": "90",
"users": [
{
"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
}
],
"managers": [
{
"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/saveUserGroup",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"eid":"MyGroup","description":"user group for test purpose","passwordTtl":"90","users":[{"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}],"managers":[{"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": "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
}
Update User Group
POST
http://{{hostname}}/aioc-rest-web/rest/user/saveUserGroup
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/saveUserGroup");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"id\": \"35a63ea0-e8b1-44f6-9d1a-afdaf54bd609\",\n \"eid\": \"MyGroup\",\n \"description\": \"user group for test purpose\",\n \"users\": [\n {\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 }\n ],\n \"managers\": [\n {\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 }\n ],\n \"realms\": null,\n \"deviceRealms\": null,\n \"properties\": {\n \"passwordTtlMonths\": \"90\"\n },\n \"recordLimit4Search\": null,\n \"groupPropertyKey4Search\": null,\n \"groupPropertyValue4Search\": null,\n \"filterGroupIdList\": null,\n \"passwordTtl\": 90,\n \"systemGroup\": false,\n \"registrationRole\": false,\n \"allowDirectAccess\": false,\n \"allowConsoleAccess\": false,\n \"containLocalUser4Search\": false,\n \"adminGroup\": true,\n \"autonomousGroup\": false,\n \"approvalRequired\": false,\n \"externalDirectorySources\": null,\n \"otpEnabled\": 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/saveUserGroup' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "35a63ea0-e8b1-44f6-9d1a-afdaf54bd609",
"eid": "MyGroup",
"description": "user group for test purpose",
"users": [
{
"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
}
],
"managers": [
{
"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
}
],
"realms": null,
"deviceRealms": null,
"properties": {
"passwordTtlMonths": "90"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"passwordTtl": 90,
"systemGroup": false,
"registrationRole": false,
"allowDirectAccess": false,
"allowConsoleAccess": false,
"containLocalUser4Search": false,
"adminGroup": true,
"autonomousGroup": false,
"approvalRequired": false,
"externalDirectorySources": null,
"otpEnabled": false
}'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/saveUserGroup",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({"id":"35a63ea0-e8b1-44f6-9d1a-afdaf54bd609","eid":"MyGroup","description":"user group for test purpose","users":[{"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}],"managers":[{"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}],"realms":null,"deviceRealms":null,"properties":{"passwordTtlMonths":"90"},"recordLimit4Search":null,"groupPropertyKey4Search":null,"groupPropertyValue4Search":null,"filterGroupIdList":null,"passwordTtl":90,"systemGroup":false,"registrationRole":false,"allowDirectAccess":false,"allowConsoleAccess":false,"containLocalUser4Search":false,"adminGroup":true,"autonomousGroup":false,"approvalRequired":false,"externalDirectorySources":null,"otpEnabled":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 Group
POST
http://{{hostname}}/aioc-rest-web/rest/user/deleteUserGroup/{groupId}
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/deleteUserGroup/{groupId}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\"35a63ea0-e8b1-44f6-9d1a-afdaf54bd609\"]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname}}/aioc-rest-web/rest/user/deleteUserGroup/{groupId}' \
--header 'Content-Type: application/json' \
--data-raw '["35a63ea0-e8b1-44f6-9d1a-afdaf54bd609"]'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/deleteUserGroup/{groupId}",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify(["35a63ea0-e8b1-44f6-9d1a-afdaf54bd609"]),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
true
Get UserGroup Details By Id
GET
http://{{hostname}}/aioc-rest-web/rest/user/groupDetail/USERGROUPID
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/groupDetail/DEFAULT_GROUP_SYSYEM_ADMINS");
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/groupDetail/DEFAULT_GROUP_SYSYEM_ADMINS' \
--header 'Content-Type: application/json'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/groupDetail/DEFAULT_GROUP_SYSYEM_ADMINS",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
{
"id": "DEFAULT_GROUP_SYSYEM_ADMINS",
"eid": "System.admins",
"description": "Single Connect system admin group",
"users": [
{
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin",
"personelId": null,
"name": "Administrator",
"passwordAlgorithm": null,
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "Administrator",
"internal": true,
"properties": {
"ubaThreshold": "50",
"phoneNumber": "05301494892"
},
"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": 1614303736600,
"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
}
],
"managers": [],
"realms": [],
"deviceRealms": [
1,
971500,
3380959
],
"properties": {
"adminGroup": "true",
"otpEnabled": "false",
"systemGroup": "true"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"containLocalUser4Search": false,
"registrationRole": false,
"allowConsoleAccess": false,
"adminGroup": true,
"autonomousGroup": false,
"approvalRequired": false,
"externalDirectorySources": null,
"otpEnabled": false,
"passwordTtl": null,
"systemGroup": true,
"allowDirectAccess": false
}
Get All Users Group
GET
http://{{hostname}}/aioc-rest-web/rest/user/allGroups
csharp
var client = new RestClient("http://{{hostname}}/aioc-rest-web/rest/user/allGroups");
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/allGroups'javascript
var settings = {
"url": "http://{{hostname}}/aioc-rest-web/rest/user/allGroups",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
[
{
"id": "DnsAdmins",
"eid": "DnsAdmins",
"description": "DNS Administrators Group",
"users": [],
"managers": [],
"realms": [],
"deviceRealms": [
1598088
],
"properties": {
"externalDirectorySources": "ldap"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"containLocalUser4Search": false,
"registrationRole": false,
"allowConsoleAccess": false,
"adminGroup": false,
"autonomousGroup": false,
"approvalRequired": false,
"externalDirectorySources": "ldap",
"otpEnabled": false,
"passwordTtl": null,
"systemGroup": false,
"allowDirectAccess": false
},x
{
"id": "DEFAULT_GROUP_SYSYEM_ADMINS",
"eid": "System.admins",
"description": "Single Connect system admin group",
"users": [
{
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin",
"personelId": null,
"name": "Administrator",
"passwordAlgorithm": null,
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "Administrator",
"internal": true,
"properties": {
"ubaThreshold": "50",
"phoneNumber": "05301494892"
},
"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": 1614303736600,
"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
}
],
"managers": [],
"realms": [],
"deviceRealms": [
1,
971500,
3380959
],
"properties": {
"adminGroup": "true",
"otpEnabled": "false",
"systemGroup": "true"
},
"recordLimit4Search": null,
"groupPropertyKey4Search": null,
"groupPropertyValue4Search": null,
"filterGroupIdList": null,
"containLocalUser4Search": false,
"registrationRole": false,
"allowConsoleAccess": false,
"adminGroup": true,
"autonomousGroup": false,
"approvalRequired": false,
"externalDirectorySources": null,
"otpEnabled": false,
"passwordTtl": null,
"systemGroup": true,
"allowDirectAccess": false
}
]