Get All User Groups for a User

get

/rest/v19/users/{partyNumber}/groups

Use this endpoint to retrieve all user groups for a given 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

The following example 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 -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/users/935719302534024740/groups

Response Body Sample

{
    "items": [
        {
            "label": "100k Parts",
            "variableName": "a100kparts",
            "type": "Sales"
        },
        {
            "label": "Admin Access- Groups",
            "variableName": "adminAccessGroupsOnly",
            "type": "Administrator"
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "http://sitename.oracle.com/rest/v19/companies/phoenix60388/users/PROJECT_CREATOR_SERVICES/groups"
        },
        {
            "rel": "parent",
            "href": "http://sitename.oracle.com/rest/v19/companies/phoenix60388/users/PROJECT_CREATOR_SERVICES"
        }
    ]
}
Back to Top