Search or Export Groups
/essbase/rest/v1/groups
Gets a list of groups based on search results, or exports groups as CSV file.
If you are using EPM Shared Services security mode, this operation is not available. Instead, manage users, groups, and permissions in the Shared Services Console.
Request
-
expand: string
Value can be
all
ornone
. Default value isall
, meaning service role and parent groups are returned for each group. Ifnone
is specified, service role and parent groups are not returned.Default Value:all
-
filter: string
Group ID wildcard pattern. Filter by name of groups if header
Accept='application/json'
orAccept='application/xml'
. -
limit: integer(int32)
Maximum number of groups to return, if header
Accept='application/json'
orAccept='application/xml'
.Default Value:-1
Response
- application/json
- application/xml
200 Response
OK
List of groups matching search criteria. Response type can be either JSON, XML, or CSV stream, depending on the Accept header. If Accept='application/json'
or Accept='application/xml'
, the search result is returned in the response. If Accept='application/octet-stream'
, search result is returned as stream (not shown due to a Swagger limitation).
object
-
description:
string
-
groups:
array groups
-
links:
array links
-
name:
string
The group name. Limit 256 characters. The following special characters are not permitted:
; , = + * ? [ ] | < > \ " ' / Space Tab
. Additionally, a period (.
) is not permitted in group names. -
role:
string
400 Response
Bad Request
Logged in user may not have appropriate permissions.
500 Response
Internal Server Error.
Examples
The following example shows how to list or export Essbase groups.
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 – List Groups
call properties.bat
curl -X GET -u %User%:%Password% "https://myserver.example.com:9001/essbase/rest/v1/groups?filter=*&links=none" -H "accept: application/json"
Example of Response Body
The following example shows the contents of the response body in JSON format:
{
"items" : [ {
"name" : "appmanagers"
}, {
"name" : "dbmanagers"
}, {
"name" : "FilterGroup"
}, {
"name" : "powergroup"
} ]
}
Script with cURL Command – Export Groups
The following example exports groups to groups.csv
.
call properties.bat
curl -X GET -u %User%:%Password% "https://myserver.example.com:9001/essbase/rest/v1/groups?filter=*" -H "Accept: application/octet-stream" -o groups.csv