Remove Calc Script Permissions
/essbase/rest/v1/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): string
Application name.
-
databaseName(required): string
Database name.
-
scriptName(required): string
Script name.
-
userGroupId(required): string
Id of the user or group.
-
group(required): boolean
True if the userGroupId refers to a group.
Default Value:false
Response
- application/json
- application/xml
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%