Update administrator role
Change the role and product-level access control configuration for the specified administrator. The request body must contain the complete desired role configuration. Any existing role settings not included in the request will be removed. <br>Role behavior: <br>- Druva Cloud - The administrator gets full access across all products. The productAccessControls field is ignored. <br>- Product - The productAccessControls field is required and defines per-product role and resource-level access. <br> <br>The available product roles and access controls applicable for a role can be fetched using the List roles API.
📘 Note To use this API endpoint, enable the Administrator API from Druva Cloud settings.
Request
- Base URLhttps://apis.druva.com/platform
- URLhttps://apis.druva.com/platform/console/v1/admins/{globalAdminID}/role
- AuthAPI key in header Authorization
Path parameters
The global ID of the admin on which the action has to be performed. Get the global ID of the administrator using the List all administrators API.
Headers
Request content type header
Request body
Example request
{
"productAccessControls": [
{
"productID": 8193,
"productRole": "Profile Admin",
"accessControl": [
{
"collectionName": "Default",
"collectionID": 4,
"resource": "Profiles",
"itemList": []
}
]
}
]
}Response
Success
Example response
{
"globalAdminId": "5bxxxxxx-exxx-xxex-bxxx-e00xxx98xxxx-xxx7",
"globalCustomerId": "axexxxxx-1xxx-4xxx-8xxx-5xxxxxxxxxxx",
"adminEmail": "sample@gmail.com",
"adminName": "sample",
"role": "Product"
}Changes
No recorded changes to this operation across all 1 revision of this API.