Delete a User Role

Delete a User Role

Important

This Netskope REST API v1 endpoint will be retired on 10/15/2024. Refer to End of Life (EOL) for Specific REST API v1 Endpoints for more details.

This endpoint deletes a user role.

Request Endpoint

https://<tenant-URL>/api/v1/role?op=delete

Valid parameters are:

KeyTypeValueDescription
tokenstringEx:

f32a973eddd7bc1602fc0dc0a

Required. The token obtained from the REST API page in the Netskope UI ( Settings > Tools > Rest API v1) is required. We recommend that you place the token in the body of the request, not in the endpoint URL.
opstringdeleteRequired. Operation performed.
role_namestringEx:

admin | user | analyst

Required. Specifies role to be deleted. 

Example Delete User Role Request

POST 'https://<tenant-URL>/api/v1/role?op=delete' 
--header 'Content-Type: application/json' 
--data-raw '{
    "token": "f32a973eddd7bc1602fc0f48dc0a", 
    "role_name": "Custom Netskope Role",
    "role_desc": "Role Description Now Updated using secure Method",
    "privilege": [
        {
          "name": "administrators",
          "value": "view"
        },
        {
          "name": "threat",
          "value": "edit"
        }
    ]
}
Share this Doc

Delete a User Role

Or copy link

In this topic ...