This article discusses the different Cato APIs that let you manage admins and admin roles for the Cato Management Application. This API supports managing admins for both reseller accounts and regular accounts.
The addAdmin
configuration API creates new admins for the account in the Cato Management Application.
These are the arguments for the addAdmin
configuration API:
-
firstName: The first name of the admin (max 255 characters) – this field is mandatory
-
lastName: The first last of the admin (max 255 characters) – this field is mandatory
-
email: The email address, unique per admin (max 255 characters) – this field is mandatory
-
passwordNeverExpires: Boolean value (true/false). If value set to true, the password of the admin never expires – this field is mandatory
-
mfaEnabled: Boolean value (true/false). If value set to true, admin must use an MFA code to log in to the Cato Management Application - this field is mandatory
-
managedRoles: array of updateAdminRoleInput. Defines one or more roles that are assigned to the admin. For reseller admins, this field defines the roles that are assigned to the admin for the managed accounts. If this field isn’t defined for the API call, then the admin is assigned the viewer role (ID 2)
-
Use the ID 1 to assign the editor role to the admin
-
-
resellerRoles: array of updateAdminRoleInput (relevant only for reseller admins). Defines the roles that the admin is assigned for the reseller account. If this field isn’t defined for the API call, then the admin is assigned the viewer role for the reseller account.
Once the admin is created the flow is the same as it if the admin was created in the Cato Management Application.
If the account is defined to let admins log in with username and password, then the admin will receive the welcome email with a link to activate the account and set the password.
updateAdmin
configuration API lets you update admin information (admin's email and id cannot be updated).
-
adminID (mandatory)
-
firstName: The first name of the admin
-
lastName: The last of the admin
-
passwordNeverExpires: Boolean value (true/false). If value is set to true, the password of the admin never expires
-
mfaEnabled: Boolean value (true/false). If the value set to true, the admin must use an MFA code to log in to the Cato Management Application
-
managedRoles: array of
updateAdminRoleInput
. Defines one or more roles that are assigned to the admin. For reseller admins, this field defines the roles that are assigned to the admin for the managed accounts. -
resellerRoles: array of
updateAdminRoleInput
(relevant only for reseller admins). Defines the roles that the admin is assigned for the reseller account.
The admins
read-only API query returns data regarding all the admins of the account, including: id, email, First Name, Last Name, passwordNeverExpires, mfaEnabled, and roles.
-
id: The Cato ID of the admin
-
firstName: The first name of the admin
-
lastName: The last of the admin
-
email: The email address
-
passwordNeverExpires: Boolean value (true/false). If value is set to true, the password of the admin never expires
-
mfaEnabled: Boolean value (true/false). If value is set to true, the admin must use an MFA code to log in to the Cato Management Application
-
managedRoles: array of updateAdminRoleInput. Defines one or more roles that are assigned to the admin. For reseller admins, this field defines the roles that are assigned to the admin for the managed accounts.
-
resellerRoles: array of updateAdminRoleInput (relevant only for reseller admins). Defines the roles that the admin is assigned for the reseller account.
The getAdmin
read-only API query returns information about a single account admin, such as: Email, First Name, Last Name, passwordNeverExpires, mfaEnabled, and roles
-
firstName: The first name of the admin
-
lastName: The last of the admin
-
email: The email address
-
passwordNeverExpires: Boolean value (true/false). If value is set to true, the password of the admin never expires
-
mfaEnabled: Boolean value (true/false). If value is set to true, admin must use an MFA code to log in to the Cato Management Application
-
managedRoles: array of updateAdminRoleInput. Defines one or more roles that are assigned to the admin. For reseller admins, this field defines the roles that are assigned to the admin for the managed accounts.
-
resellerRoles: array of updateAdminRoleInput (relevant only for reseller admins). Defines the roles that the admin is assigned for the reseller account.
The accountRoles
API read-only query returns all the roles defined for the account (custom roles and the predefined ones). It is required for customers that use the addAdmin
API, because this APIs shows the role IDs (used by the addAdmin API).
-
accountId
-
accountType
-
Regular (for regular or managed accounts roles)
-
Reseller (for reseller account roles)
-
0 comments
Article is closed for comments.