Get Service Role Provision
/essbase/rest/v1/permissions/{id}
Gets Essbase service role provisioning information. Service roles include Service Administrator, Power User, and User.
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.
See Also: Get Application Role Provision.
Request
-
id(required): string
User or group ID.
-
group: boolean
If true, ID is for a group. If false, ID is for a user. Default is false (ID is considered to be for a user.)
Default Value:false
Response
- application/json
- application/xml
200 Response
OK
Provisioning information returned 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
The logged in user may not have the required service administrator role.
500 Response
Internal Server Error.
Examples
The following example shows how to retrieve information about an Essbase user's or group's provisioned service role.
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 - User Info
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/permissions/user2?links=none" -H "Accept:application/json" -u %User%:%Password%
Example of Response Body
{
"id" : "user2",
"role" : "user"
}
Script with cURL Command - Group Info
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/permissions/powergroup?group=true&links=none" -H "Accept:application/json" -u %User%:%Password%
Example of Response Body
{
"id" : "powergroup",
"group" : true,
"role" : "power_user"
}