Create a new user group assignment for a user and a group.
A JSON object containing user group assignment information.
Successful operation
Successful operation
{- "user": 6,
- "group": 8
}
{- "success": true,
- "hash": "ba9f5616f88b108a0ae6818d23a9a5c83119bffc",
- "data": {
- "hash": "775e28b80c89ef5abbb4e97a18144dec1a6243ed",
- "created_time": "2022-08-31T12:15:39.000000Z",
- "modified_time": "2022-08-31T12:15:39.000000Z",
- "modified_user_time": "2022-08-31T12:15:39.000000Z",
- "model": "UserGroupAssignment",
- "user": {
- "id": 6,
- "hash": "49dd34eb82cc77ca8bccb35dd9a188f79d5c4026",
- "name": "Hasan Salihamidžić",
- "first_name": "Hasan",
- "last_name": "Salihamidžić",
- "position": "Scapegoat",
- "department": "Board",
- "organization": "Nordantech",
- "email": "brazzo@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:46:12.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-03T15:17:06.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "8e9b7cae66f502fb8e9b59f8f7f41a4a15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:03:13.000000Z",
- "modified_time": "2022-06-27T11:03:13.000000Z",
- "modified_user_time": "2022-06-27T11:03:13.000000Z",
- "model": "UserHubPermission"
}
}, - "group": {
- "id": 8,
- "hash": "ea3987507e605b4ea9275bb34c1a642a257c71fa",
- "name": "Admin group",
- "status": 1,
- "created_time": "2022-08-25T10:17:51.000000Z",
- "modified_time": "2022-08-25T11:51:38.000000Z",
- "modified_user_time": "2022-08-25T11:51:38.000000Z",
- "model": "Group"
}
}, - "timestamp": 1681293521098
}
Get all user group assignments of the authenticated hub.
Successful operation
{- "success": true,
- "hash": "ba9031f23a3459812c9dd3ce9d5e650e70d8b07e",
- "data": [
- {
- "hash": "376c4e11ed17193778febf81a0f5ff6b8f8b3e6a",
- "created_time": "2022-08-31T12:29:30.000000Z",
- "modified_time": "2022-08-31T12:29:30.000000Z",
- "modified_user_time": "2022-08-31T12:29:30.000000Z",
- "model": "UserGroupAssignment",
- "user": {
- "id": 2,
- "hash": "a13b1b362d914d12bbcf5de981e3a7f53d00a8d0",
- "name": "Uli Hoeneß",
- "first_name": "Uli",
- "last_name": "Hoeneß",
- "position": "CEO",
- "department": "Sausage factory",
- "organization": "Nordantech",
- "email": "knacki@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T11:01:10.000000Z",
- "modified_time": "2022-08-22T16:10:03.000000Z",
- "modified_user_time": "2022-08-22T16:10:03.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "79cadf502e6f6b8e9b8f70fa4a24159f15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:02:43.000000Z",
- "modified_time": "2022-06-27T11:02:43.000000Z",
- "modified_user_time": "2022-06-27T11:02:43.000000Z",
- "model": "UserHubPermission"
}
}, - "group": {
- "id": 3,
- "hash": "4caac5ba4d188182c58634f617317612bcedbeb1",
- "name": "Former employees",
- "status": 1,
- "created_time": "2022-07-04T13:40:49.000000Z",
- "modified_time": "2022-08-22T10:09:16.000000Z",
- "modified_user_time": "2022-07-04T13:40:56.000000Z",
- "model": "Group"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "hash": "72844d1c6afc0de9f39a5222cadd5fc9a1b03ef9",
- "created_time": "2022-08-31T12:29:26.000000Z",
- "modified_time": "2022-08-31T12:29:26.000000Z",
- "modified_user_time": "2022-08-31T12:29:26.000000Z",
- "model": "UserGroupAssignment",
- "user": {
- "id": 6,
- "hash": "49dd34eb82cc77ca8bccb35dd9a188f79d5c4026",
- "name": "Hasan Salihamidžić",
- "first_name": "Hasan",
- "last_name": "Salihamidžić",
- "position": "Scapegoat",
- "department": "Board",
- "organization": "Nordantech",
- "email": "brazzo@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:46:12.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-03T15:17:06.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "8e9b7cae66f502fb8e9b59f8f7f41a4a15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:03:13.000000Z",
- "modified_time": "2022-06-27T11:03:13.000000Z",
- "modified_user_time": "2022-06-27T11:03:13.000000Z",
- "model": "UserHubPermission"
}
}, - "group": {
- "id": 8,
- "hash": "ea3987507e605b4ea9275bb34c1a642a257c71fa",
- "name": "Admin group",
- "status": 1,
- "created_time": "2022-08-25T10:17:51.000000Z",
- "modified_time": "2022-08-25T11:51:38.000000Z",
- "modified_user_time": "2022-08-25T11:51:38.000000Z",
- "model": "Group"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 2,
- "total": 2,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1661948985925
}
Get a user group assignment.
Successful operation
Not Found
{- "success": true,
- "hash": "265d9f6fcb0cdb1dd438ac11a5919642838a1450",
- "data": {
- "hash": "72844d1c6afc0de9f39a5222cadd5fc9a1b03ef9",
- "created_time": "2022-08-31T12:29:26.000000Z",
- "modified_time": "2022-08-31T12:29:26.000000Z",
- "modified_user_time": "2022-08-31T12:29:26.000000Z",
- "model": "UserGroupAssignment",
- "user": {
- "id": 6,
- "hash": "49dd34eb82cc77ca8bccb35dd9a188f79d5c4026",
- "name": "Hasan Salihamidžić",
- "first_name": "Hasan",
- "last_name": "Salihamidžić",
- "position": "Scapegoat",
- "department": "Board",
- "organization": "Nordantech",
- "email": "brazzo@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:46:12.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-03T15:17:06.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "8e9b7cae66f502fb8e9b59f8f7f41a4a15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:03:13.000000Z",
- "modified_time": "2022-06-27T11:03:13.000000Z",
- "modified_user_time": "2022-06-27T11:03:13.000000Z",
- "model": "UserHubPermission"
}
}, - "group": {
- "id": 8,
- "hash": "ea3987507e605b4ea9275bb34c1a642a257c71fa",
- "name": "Admin group",
- "status": 1,
- "created_time": "2022-08-25T10:17:51.000000Z",
- "modified_time": "2022-08-25T11:51:38.000000Z",
- "modified_user_time": "2022-08-25T11:51:38.000000Z",
- "model": "Group"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1661949528292
}
Delete a user group assignment.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1661438926362
}