Remove Calc Script Permissions
/applications/{applicationName}/databases/{databaseName}/scripts/{scriptName}/permissions/{userGroupId}
Removes permissions from the specified script for the specified user or group. Applicable only for calculation scripts.
Request
-
applicationName(required):
Application name.
-
databaseName(required):
Database name.
-
scriptName(required):
Script name.
-
userGroupId(required):
ID of the user or group.
-
group(required):
True if the userGroupId refers to a group.
Response
204 Response
Script permission removed successfully.
400 Response
Bad Request
Failed to delete permissions for the script. The application, database, or script name may be incorrect, or the user or group ID may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to use the Essbase REST API to remove a user's or group's permission to run a particular calc script.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat.
Script with cURL Command
call properties.bat
curl -X DELETE https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/scripts/actuals/permissions/user2 -H "accept: application/json" -u %User%:%Password%