Get User Access Permissions

get

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

This endpoint returns Product Family and Data Table folder access permissions for the specified user. Note: Access permissions for a user will be available only when Administrator Groups are disabled.

Request

Path Parameters
Query Parameters
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
    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
Back to Top

Examples

This endpoint returns Product Family, Supported Product Families, and Data Table folder access permissions for the specified userThis endpoint returns Product Family, Supported Product Families, and Data Table folder access permissions for the specified user by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

Note: Access permissions for a user will be available only when Admin Access Control is disabled.

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

Response Body Sample

{
  "items": [{
      "name": "Testbed",
      "variableName": "testbed",
      "hasAccess": true,
      "type": "productFamily"
    }, {
      "name": "Admin",
      "variableName": "admin",
      "hasAccess": true,
      "type": "productFamily"
    }, {
      "name": "Test 4",
      "variableName": "test4",
      "hasAccess": true,
      "type": "supportedProductFamily"
    }, {
      "name": "[Default]",
      "variableName": "_default",
      "hasAccess": true,
      "type": "dataTableFolder"
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/aavenkatbulk/accessPermissions"
    }, {
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/aavenkatbulk"
    }
  ]
}
Back to Top