Update User Access

put

/rest/v19/companies/{companyName}/users/{userName}/accessPermissions

This endpoint replaces the access permissions of an existing user with new permissions passed in the request body.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : accessPermissions-updateRequest
Type: object
Show Source
  • Access Permissions
    Title: Access Permissions
    List of access permissions to be updated for user, Entity's access will be removed if its details are not passed in request.
Nested Schema : Access Permissions
Type: array
Title: Access Permissions
List of access permissions to be updated for user, Entity's access will be removed if its details are not passed in request.
Show Source
Nested Schema : Access Permission
Type: object
Title: Access Permission
User access bits information
Show Source
  • Title: Has Access
    Flag to determine if 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
Back to Top

Response

Supported Media Types

Default Response

User Access Permissions
Body ()
Root Schema : Access Permissions
Type: object
Title: Access Permissions
Access Permissions of a user
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
    Flag to determine if 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
Back to Top

Examples

This endpoint replaces the access permissions of an existing user with new permissions passed in the request body by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET -H "Authorization: Bearer <token>" - H 
https://sitename.oracle.com/rest/v19/companies/_host/users/aavenkatbulk/accessPermissions

Request Body Sample

{
  "items": [{
      "name": "Testbed",
      "variableName": "testbed",
      "hasAccess": true,
      "type": "productFamily"
    }
  ]
}
Back to Top