Bulk Update Users within Groups

patch

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

This endpoint adds or removes users for a group.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Patch Operations
Type: array
Title: Patch Operations
The array of operations.
Show Source
Nested Schema : Group User Operation
Type: object
Title: Group User Operation
Show Source
Nested Schema : User Details
Type: object
Title: User Details
Show Source
Back to Top

Response

Supported Media Types

Default Response

List of users for a group.
Body ()
Root Schema : user-collection
Type: object
Show Source
Nested Schema : List of users
Type: array
Title: List of users
List of users
Show Source
Nested Schema : user
Type: object
Show Source
Nested Schema : Access Permissions
Type: object
Title: Access Permissions
Access Permissions of a user
Show Source
Nested Schema : Company details
Type: object
Title: Company details
User Company details. Applicable only for Users Across Companies
Show Source
Nested Schema : Currency
Type: object
Title: Currency
Currency preference of user. Value holds currency code
Show Source
Nested Schema : Date Format
Type: object
Title: Date Format
User preferred date time format
Show Source
Nested Schema : Enabled For SSO
Type: object
Title: Enabled For SSO
Enabled For SSO
Show Source
Nested Schema : Groups
Type: object
Title: Groups
Groups to which the user belongs
Show Source
Nested Schema : Language
Type: object
Title: Language
Language preference of user. Value holds language code
Show Source
Nested Schema : Number Format
Type: object
Title: Number Format
Preferred number format of user
Show Source
Nested Schema : Status
Type: object
Title: Status
Status of the user
Show Source
Nested Schema : TimeZone of user
Type: object
Title: TimeZone of user
User preferred timezone
Show Source
Nested Schema : Type
Type: object
Title: Type
Type of the user
Show Source
Nested Schema : Units
Type: object
Title: Units
User preferred units
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Access Permission
Type: object
Title: Access Permission
User access bits information
Show Source
  • Title: Has Access
    Boolean attribute that indicates if a user has access to the restricted entity.
  • Title: Restricted Entity Name
    Name of the entity to which access restrictions apply
  • Title: Type
    Type of the restricted entity. Possible values productFamily, supportedProductFamily and dataTableFolder
  • Title: Restricted Entity Variable Name
    Variable name of the entity to which access restrictions apply
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 shows how to update users within groups via one web services request by submitting a PATCH 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/midwestTestGroup/users

Request Body Sample

{
  "operations": [{
      "op": "remove",
      "path": "/superuser"
    }, {
      "op": "add",
      "path": "/",
      "value": {
        "login": "msmith"
      }
    }, {
      "op": "add",
      "path": "/",
      "value": {
        "login": "ljones"
      }
    }
  ]
}

Response Body Sample

{
  "items": [{
      "login": "amayor",
      "firstName": "Alex",
      "lastName": "Mayor" 
    }, {
      "login": "msmith",
      "firstName": "Mary",
      "lastName": "Smith"
    }, {
      "login": "ljones",
      "firstName": "Lisa",
      "lastName": "Jones"
    }
  ],
  "links": [{
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/groups/midwestTestGroup/users"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/groups/midwestTestGroup/users?offset=0&limit=1000"
    }
  ]
}
Back to Top