REST API - getOrgModelRoots
The tables summarize the REST API - getOrgModelRoots.
Request
| Format |
GET <baseurl>/orgmodel/roots/<version> |
| Path parameters | version: The major version of the organization model for which details are to be displayed. Can be obtained using listOrgModelVersions. |
| Query parameters | includecategories=boolean (optional): If set to true, capabilities and privileges are grouped in the nested categories in which they were deployed; if false (default), capabilities and privileges are listed in a flat list. |
Response
| JSON | Returns a JSON representation of the content of the getOrgModelRootsResponse element. |
| XML | Returns the content of the getOrgModelRootsResponse element (from the OrgModelService schema). |
Example
| Request |
GET <baseurl>/orgmodel/roots/1?includecategories=true |
| Response |
{
"xml-fragment": {
"-model-version": "1",
"capability-category": {
"-guid": "_nytFsO44EeSfeZXXCMB77x",
"-label": "finance",
"-name": "finance",
"capability": [
{
"-guid": "_nytFsO44EeSfeZXXCMB77w",
"-label": "purchase",
"-name": "purchase"
},
{
"-guid": "_oML8sO44EeSfeZXXCMB77w",
"-label": "sales",
"-name": "sales"
}
]
},
"privilege-category": {
"-guid": "_nytFsO44EeSfeZXXCMB77z",
"-label": "org-model",
"-name": "orgmodel",
"privilege": [
{
"-guid": "_pdqysO44EeSfeZXXCMB77w",
"-label": "browse",
"-name": "browse"
},
{
"-guid": "_p-PJIO44EeSfeZXXCMB77w",
"-label": "user-admin",
"-name": "useradmin"
}
]
},
"organization": {
"-guid": "_WqkgEe44EeSfeZXXCMB77w",
"-label": "Organization1",
"-name": "Organization1",
"allocation-method": { "-method": "NEXT" },
"org-unit": [
{
"-guid": "_9AzbIO44EeSfeZXXCMB77w",
"-label": "finance",
"-name": "finance"
},
{
"-guid": "_9aIhIO44EeSfeZXXCMB77w",
"-label": "customer-support",
"-name": "customersupport"
}
]
}
}
}
|
Copyright © Cloud Software Group, Inc. All rights reserved.
