Get Groups for the Host Company or for a Partner Organization

get

/rest/v16/companies/{companyLoginName}/groups

This endpoint retreives a list of groups for the host company or for a partner organization.

Request

Path Parameters
Query Parameters
  • Exclude given link types from response. Supported only with produces type application/json.
    Allowed Values: [ "self", "child", "parent", "canonical", "next", "prev", "related" ]
  • Allows expansion of relationships.
    Allowed Values: [ "users" ]
  • Group fields to be returned in response.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of fields to order the response by.
  • Criteria to filter the groups. By default no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

List of groups.
Body ()
Root Schema : group-collection
Type: object
Show Source
Nested Schema : List of Groups
Type: array
Title: List of Groups
List of groups.
Show Source
Nested Schema : Group
Type: object
Title: Group
User group information
Show Source
Back to Top

Examples

The following example retrieves a list of groups for the host company or for a partner organization by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/companies/visionServices/groups 

Response Body Sample

{
  "items": [
    {
      "label": "General",
      "variableName": "general",
      "company": {
        "name": "visionServices",
        "loginName": "_host"
      },
      "status": {
        "value": 1,
        "displayValue": "Active"
      },
      "type": {
        "value": 1,
        "displayValue": "Administrator"
      },
      "readOnly": false,
      "links": [
        {
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/companies/_host/groups/general"
        },
        {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/companies/_host/groups/general/users"
        }
      ]
    },
    {
      "label": "No Longer Used 15",
      "variableName": "iragroup",
      "company": {
        "name": "visionServices",
        "loginName": "_host"
      },
      "status": {
        "value": 1,
        "displayValue": "Active"
      },
      "type": {
        "value": 0,
        "displayValue": "Sales"
      },
      "readOnly": false,
      "links": [
        {
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/companies/_host/groups/iragroup"
        },
        {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/companies/_host/groups/iragroup/users"
        }
      ]
    }
  ],
  "offset": 0,
  "limit": 2,
  "count": 2,
  "hasMore": false,
  "links": [
    {
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v16/groups"
    },
    {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/groups?offset=0&limit=1000"
    }
  ]
}
Back to Top