Skip to main content

Users encountered failures when making API calls to create an administrator using the Druva Cloud Platform API.

Users encountered failures when making API calls to create an administrator using the Druva Cloud Platform API.

Updated this week

Problem Description:

Users encountered failures when making API calls to create an administrator using the Druva Cloud Platform API. Errors were related to the itemList parameter and the druvaDomainLegalConsent field, resulting in unsuccessful admin creation attempts.

Cause:

  1. The itemList parameter was either omitted or provided as an empty array, which is not supported for certain admin operations.

  2. The druvaDomainLegalConsent field was incorrectly set to true for domains other than druva.org or druva.com, causing validation errors.

Traceback:

  • Error when itemList parameter is omitted:

{
"code": "PlatformConsole-4294967297",
"message": "Internal application error.",
"retryable": false,
"data": {"extraData": null, "validationFailures": []}
}
  • Error when itemList is empty and druvaDomainLegalConsent is set incorrectly:

{
"code": "PlatformConsole-4296015881",
"message": "Invalid inputs to method. (#100100009)",
"input errors": {
"Auto Delete TnC Accepted": "Auto delete terms and conditions applicable to admin of druva.com domain only"
}
}

Resolution:

  1. Set druvaDomainLegalConsent to false for all domains except druva.org or druva.com.

  2. Ensure the itemList parameter is included and correctly formatted according to the API documentation. If the resource requires items, do not leave itemList empty.

Example of a successful API request:

{
"role": "Product",
"productAccessControls": {
"products": [
{
"productID": 12289,
"productRole": "Organization Administrator",
"accessControls": [
{
"collectionName": "ABCD",
"collectionID": 10401,
"resource": "Organization",
"itemList": []
}
]
}
]
},
"druvaDomainLegalConsent": false,
"adminEmail": "admintest@gmail.com",
"adminName": "VK",
"timezone": "UTC"
}

After applying these corrections, the API call succeeded, and the admin user was created successfully.

References:

Did this answer your question?