Get User Groups

get

/rest/v16/companies/{companyName}/users/{userName}/groups

This endpoints returns all groups assigned to specified user.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

Default Response

Groups details.
Body ()
Root Schema : Groups
Type: object
Title: Groups
Groups to which the user belongs
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Group
Type: object
Title: Group
User group information
Show Source
Back to Top

Examples

This endpoints returns all groups assigned to specified user by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" 
https://sitename.oracle.com/rest/v16/companies/_host/users/aavenkatbulk/groups

Response Body Sample

{
  "items": [{
      "label": "100k Parts",
      "variableName": "a100kparts",
      "type": "Sales"
    }, {
      "label": "Admin Access- Internal Users",
      "variableName": "adminAccessUsersOnly",
      "type": "Administrator"
    }
  ],
  "offset": 0,
  "limit": 1000,
  "count": 2,
  "hasMore": false,
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/aavenkatbulk"
    }, {
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/aavenkatbulk/groups"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/aavenkatbulk/groups?offset=0&limit=1000"
    }
  ]
}
Back to Top