Replace Filter Permissions
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/filters/{filterName}/permissions
Replaces all the users and groups assigned to the filter with a new list of users and groups.
Request
- application/json
- application/xml
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
-
filterName(required): string
Filter name.
User or group details.
object
-
group:
boolean
true or false. Whether the id refers to a group.
-
id:
string
User or group ID.
-
links:
array links
-
name:
string
User or group name.
-
role:
string
User or group role.
Response
- application/json
- application/xml
200 Response
OK
The filter permissions were edited successfully.
object
-
group:
boolean
true or false. Whether the id refers to a group.
-
id:
string
User or group ID.
-
links:
array links
-
name:
string
User or group name.
-
role:
string
User or group role.
400 Response
Bad Request
Failed to modify the filter permissions. The application name, database name, filter name, or user or group name may be incorrect, or the specified user or group may not have enough privileges.
415 Response
Not Acceptable
The media type isn't supported or wasn't specified.
500 Response
Internal Server Error.
Examples
The following example shows how to clear all existing permissions from an Essbase security filter.
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 PUT https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/dslookupfilter/permissions -H "Accept: application/json" -H "Content-Type: application/json" -d '{"items": []}' -u %User%:%Password%
You can add new permissions after clearing them, using Add Permissions in Filter.