Download OpenAPI specification:Download
Get a list of existing permissions
qs | string Query string used for filtering / sorting / paging the returned results |
[- {
- "isDeleted": false,
- "permission": "create user",
- "permissionId": "56",
- "numberOfGroups": 8,
- "createdDate": "2021-05-29 07:31:06",
- "numberOfRoles": 5,
- "permissionGroups": [
- "{ permissionGroup object 1 }",
- "{ permissionGroup object 2 }",
- "{ permissionGroup object 3 }"
], - "modifiedDate": "2021-04-22 23:59:59",
- "roles": [
- "{ role object 1 }",
- "{ role object 2 }",
- "{ role object 3 }"
], - "description": "Allows creating new users"
}
]
Create a new permission
Fields needed to create and/or update a Permission
isDeleted | boolean Flag which marks the entry as removed. |
permission | string Name of the permission |
permissionGroups | Array of integers Array of permission groups that this permission is assigned to (for POST/PUT/PATCH requests this should be an array of permission group IDs) |
roles | Array of integers Array of roles that this permission is assigned to (for POST/PUT/PATCH requests this should be an array of role IDs) |
description | string Description of the permission |
{- "isDeleted": false,
- "permission": "create user",
- "permissionGroups": [
- 147,
- 258,
- 369
], - "roles": [
- 15,
- 49,
- 36
], - "description": "Allows creating new users"
}
Update an exising permission
permissionId required | string Default: "" permissionId |
Fields needed to create and/or update a Permission
isDeleted | boolean Flag which marks the entry as removed. |
permission | string Name of the permission |
permissionGroups | Array of integers Array of permission groups that this permission is assigned to (for POST/PUT/PATCH requests this should be an array of permission group IDs) |
roles | Array of integers Array of roles that this permission is assigned to (for POST/PUT/PATCH requests this should be an array of role IDs) |
description | string Description of the permission |
{- "isDeleted": false,
- "permission": "create user",
- "permissionGroups": [
- 147,
- 258,
- 369
], - "roles": [
- 15,
- 49,
- 36
], - "description": "Allows creating new users"
}
Get details of a specific permission
permissionId required | string Default: "" permissionId |
{- "isDeleted": false,
- "permission": "create user",
- "permissionId": "56",
- "numberOfGroups": 8,
- "createdDate": "2021-05-29 07:31:06",
- "numberOfRoles": 5,
- "permissionGroups": [
- "{ permissionGroup object 1 }",
- "{ permissionGroup object 2 }",
- "{ permissionGroup object 3 }"
], - "modifiedDate": "2021-04-22 23:59:59",
- "roles": [
- "{ role object 1 }",
- "{ role object 2 }",
- "{ role object 3 }"
], - "description": "Allows creating new users"
}
Get a list of existing permission groups
qs | string Query string used for filtering / sorting / paging the returned results |
[- {
- "isDeleted": false,
- "numberOfPermissions": "4",
- "permissionGroupId": "49",
- "permissions": [
- "{ permission object 1 }",
- "{ permission object 2 }",
- "{ permission object 3 }"
], - "numberOfUsers": "2",
- "createdDate": "2021-05-29 07:31:06",
- "name": "user management",
- "modifiedDate": "2021-04-22 23:59:59",
- "description": "Permissions related to user management (view, edit, create, delete etc.)",
- "permissionList": "Lorem ipsum dolor sit amet..."
}
]
Create a new permission group
Fields needed to create and/or update a Permission Group
isDeleted | boolean Flag which marks the entry as removed. |
permissions | Array of integers Array of permissions that belong to this psermission group (for POST/PUT/PATCH requests this should be an array of permission IDs) |
name | string Name of the permission group |
description | string Description of the permission group |
{- "isDeleted": false,
- "permissions": [
- 23,
- 94,
- 15
], - "name": "user management",
- "description": "Permissions related to user management (view, edit, create, delete etc.)"
}
Update an exising permission group
permissionGroupId required | string Default: "" permissionGroupId |
Fields needed to create and/or update a Permission Group
isDeleted | boolean Flag which marks the entry as removed. |
permissions | Array of integers Array of permissions that belong to this psermission group (for POST/PUT/PATCH requests this should be an array of permission IDs) |
name | string Name of the permission group |
description | string Description of the permission group |
{- "isDeleted": false,
- "permissions": [
- 23,
- 94,
- 15
], - "name": "user management",
- "description": "Permissions related to user management (view, edit, create, delete etc.)"
}
Get details of a specific permission group
permissionGroupId required | string Default: "" permissionGroupId |
{- "isDeleted": false,
- "numberOfPermissions": "4",
- "permissionGroupId": "49",
- "permissions": [
- "{ permission object 1 }",
- "{ permission object 2 }",
- "{ permission object 3 }"
], - "numberOfUsers": "2",
- "createdDate": "2021-05-29 07:31:06",
- "name": "user management",
- "modifiedDate": "2021-04-22 23:59:59",
- "description": "Permissions related to user management (view, edit, create, delete etc.)",
- "permissionList": "Lorem ipsum dolor sit amet..."
}
Get a list of existing roles
qs | string Query string used for filtering / sorting / paging the returned results |
[- {
- "isDeleted": false,
- "numberOfPermissions": "4",
- "permissions": [
- "{ permission object 1 }",
- "{ permission object 2 }",
- "{ permission object 3 }"
], - "numberOfUsers": "2",
- "createdDate": "2021-05-29 07:31:06",
- "roleId": "123",
- "role": "administrator",
- "modifiedDate": "2021-04-22 23:59:59",
- "description": "This is the role for system administrators",
- "permissionList": "Lorem ipsum dolor sit amet..."
}
]
Create a new role
Fields needed to create and/or update a Role
isDeleted | boolean Flag which marks the entry as removed. |
permissions | Array of integers Array of permissions that are assigned to this role. For POST/PUT/PATCH requests this should be a list of permission IDs |
role | string Role name |
description | string Description of the role |
{- "isDeleted": false,
- "permissions": [
- 111,
- 222,
- 333
], - "role": "administrator",
- "description": "This is the role for system administrators"
}
Update an exising role
roleId required | string Default: "" roleId |
Fields needed to create and/or update a Role
isDeleted | boolean Flag which marks the entry as removed. |
permissions | Array of integers Array of permissions that are assigned to this role. For POST/PUT/PATCH requests this should be a list of permission IDs |
role | string Role name |
description | string Description of the role |
{- "isDeleted": false,
- "permissions": [
- 111,
- 222,
- 333
], - "role": "administrator",
- "description": "This is the role for system administrators"
}
Get details of a specific role
roleId required | string Default: "" roleId |
{- "isDeleted": false,
- "numberOfPermissions": "4",
- "permissions": [
- "{ permission object 1 }",
- "{ permission object 2 }",
- "{ permission object 3 }"
], - "numberOfUsers": "2",
- "createdDate": "2021-05-29 07:31:06",
- "roleId": "123",
- "role": "administrator",
- "modifiedDate": "2021-04-22 23:59:59",
- "description": "This is the role for system administrators",
- "permissionList": "Lorem ipsum dolor sit amet..."
}
Get a list of users
qs | string Query string used for filtering / sorting / paging the returned results |
[- {
- "language": "{ language object }",
- "isDeleted": false,
- "userId": "18364",
- "isPasswordReset": false,
- "isActive": true,
- "is2FactorAuth": false,
- "lastLogin": "2021-10-50 15:12:22",
- "lastName": "Doe",
- "createdDate": "2021-05-29 07:31:06",
- "permissionGroups": [
- "{ permission group object 1 }",
- "{ permission group object 2 }",
- "{ permission group object 3 }"
], - "role": "{ role object }",
- "preferences": "{'color':'red','car':'mercedes'}",
- "loggedIn": true,
- "firstName": "John",
- "modifiedDate": "2021-04-22 23:59:59",
- "username": "akiuser",
- "permissionList": "Lorem ipsum dolor sit amet...",
- "email": "email@example.com"
}
]
Update an exising user
userId required | string Default: "" userId |
Fields needed to create and/or update a User
language | string Language of the user unterface. GET requests return the language object, for POST/PUT/PATCH requests this should be a struct with a languageId field) |
isDeleted | boolean Flag which marks the entry as removed. |
isPasswordReset | boolean Flag indicating that the user is resetting their password |
isActive | boolean Flag marking if a user is active. Inactive users won't be able to log in |
is2FactorAuth | boolean Flag indicating if the user account uses two factor authentication |
lastName | string Last name of the user |
permissionGroups | Array of integers Array of permission groups that are assigned to this user (for POST/PUT/PATCH requests this should be an array of permission group IDs) |
role | string Role object which is assigned to this user (for POST/PUT/PATCH requests this should be a struct with a roleId field) |
preferences | string Custom user preferences stored in JSON format |
firstName | string First name of the user |
username | string Username of the user. This is used for logging in |
string E-mail address of the user |
{- "language": "{ 'languageId':some_language_id }",
- "isDeleted": false,
- "isPasswordReset": false,
- "isActive": true,
- "is2FactorAuth": false,
- "lastName": "Doe",
- "permissionGroups": [
- 15,
- 49,
- 36
], - "role": "{ 'roleId':some_role_id }",
- "preferences": "{'color':'red','car':'mercedes'}",
- "firstName": "John",
- "username": "akiuser",
- "email": "email@example.com"
}
Get details of a specific user
userId required | string Default: "" userId |
{- "language": "{ language object }",
- "isDeleted": false,
- "userId": "18364",
- "isPasswordReset": false,
- "isActive": true,
- "is2FactorAuth": false,
- "lastLogin": "2021-10-50 15:12:22",
- "lastName": "Doe",
- "createdDate": "2021-05-29 07:31:06",
- "permissionGroups": [
- "{ permission group object 1 }",
- "{ permission group object 2 }",
- "{ permission group object 3 }"
], - "role": "{ role object }",
- "preferences": "{'color':'red','car':'mercedes'}",
- "loggedIn": true,
- "firstName": "John",
- "modifiedDate": "2021-04-22 23:59:59",
- "username": "akiuser",
- "permissionList": "Lorem ipsum dolor sit amet...",
- "email": "email@example.com"
}
Activate user's account with token.
Fields required to activate a new account
token required | string Account activation token |
{- "token": "BC7395219AA7E9BACE59323EEE8E2FAA"
}
Check if the account activation token is valid.
Fields required to check if the account activation token is valid
token required | string Account activation token which will be check if it is valid |
{- "token": "BC7395219AA7E9BACE59323EEE8E2FAA"
}
Check if the password reset token is valid.
Fields required to check if the password reset request token is valid
token required | string Password reset which will be check if it is valid |
{- "token": "BC7395219AA7E9BACE59323EEE8E2FAA"
}
Try to log a user into the system. If invalid credentials are provided, cbSecurity will thwor an IvalidCredentials error. The REST handler will automatically return the correct response.
Fields required to log a user into the system
username required | string The username used to log in |
password required | string User's password |
{- "username": "myuser2021",
- "password": "Ae]=a=XWk%qx>JCh"
}
Register a new user.
Fields required to log a user into the system
firstname required | string The user's first name |
lastname required | string The user's last name |
email required | string The user's email address |
username required | string The user's requested username, which will be used to log into the system. |
password required | string The user's password |
acceptPrivacyPolicy | boolean Flag indicating that the user accepted the privacy policy. This field might be required, depending on module configuration. |
{- "firstname": "John",
- "lastname": "Doe",
- "email": "john@example.com",
- "username": "johndoe2021",
- "password": "Ae]=a=XWk%qx>JCh",
- "acceptPrivacyPolicy": false
}
Request reset password link. Requires firstname, lastname and email to identify the user.
Fields required to start the reset password procedure and receive the reset password link
firstname required | string User's first name |
lastname required | string User's last name |
email required | string User's email |
{- "firstname": "John",
- "lastname": "Doe",
- "email": "johndoe@example.com"
}
Update the user's password. Requires a valid password reset token.
Fields required to update a users's password
newPassword required | string User's new password |
repeatPassword required | string User's new password (repeated) |
{- "newPassword": ";KMbZr?6!`Md{PXp",
- "repeatPassword": ";KMbZr?6!`Md{PXp"
}