Create an administrator

Creates an administrator in the Druva Console.

šŸ“˜

Note

To use this API endpoint, enable the Administrator API from Druva Cloud settings.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Caution

If you try to create a Product administrator using the Try It! button, you may run into issues because of a bug in the developer portal. The developer portal is unable to generate a valid payload at the moment with the itemList field set as an empty array []. That's the reason why the Try It feature fails to create an admin.

We are working with the provider of the developer portal to fix this issue.

For now, you can use the following cURL request that provides a sample payload. It includes the itemList field set to an empty array ([]). You can write a script that sends a valid payload to the platform, and it will create your admin.

curl --location 'https://apis.druva.com/platform/console/v1/admins' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-raw '
{
  "role": "Product",
  "productAccessControls": {
    "products": [
      {
        "productID": 8193,
        "productRole": "Profile Admin",
        "accessControls": [
          {
            "collectionName": "Default",
            "collectionID": 795,
            "resource": "Profiles",
            "itemList": []
          },
          {
            "collectionName": "Endpoints",
            "collectionID": 1,
            "resource": "Workloads",
            "itemList": []
          }
        ]
      }
    ]
  },
  "druvaDomainLegalConsent": true,
  "adminEmail": "[email protected]",
  "adminName": "ins_product11",
  "timezone": "UTC"
}
'

Body Params

Request body

string
required

The email address of the administrator you want to create.

string
required

The name of the administrator you want to create.

string
enum
required

Select the role of the administrator.

  • Druva Cloud - Druva Cloud Administrator is a super administrator who gets all the rights of all the administrative roles across products, based on the services enabled for your account and the privileges needed to modify account settings.
  • Product - Product administrator can perform all core product-related activities such as configuring, managing, and monitoring.
Allowed:
string
required

Specify the timezone of the administrator.

productAccessControls
object

Specify this if you are creating a 'Product' administrator.

boolean
Defaults to false

Setting this parameter to True indicates you consent to creating a Druva administrator account with an email address ending in druva.com or druva.org.

Headers
string
enum
required

Request content type header

Allowed:
Responses

400

Bad Request

404

The requested resource was not found.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json