Update a data assignment for a user

patch

/fscmRestApi/resources/11.13.18.05/dataSecurities/{UserRoleDataAssignmentId}

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Active
    Maximum Length: 1
    Default Value: true
    Indicates whether the data security access is active. The default value is ACTIVE.
  • Title: Role
    Maximum Length: 256
    The technical name of role where the data security assignment applies to the user. The role must be assigned to the user separately.
  • Title: Role Name
    The name of the role for which the data security assignment is applicable. You must separately assign the role to the user.
  • Title: Security Context
    Maximum Length: 255
    The category of data access that is required for the role. The category includes business unit, asset book, and inventory organization.
  • Title: Security Context Value
    Maximum Length: 255
    The value of the security context associated with a role. For example, for a specific business unit, a financials job role is assigned the security context of that business unit. This value can be used as a criteria for assigning data access to a user name. This is the value for a single-part security context or the value for the first part of a multi-part context.
  • Maximum Length: 255
    The value of the security context associated with a role. For example, for a specific business unit, a financials job role is assigned the security context of that business unit. This value can be used as a criteria for assigning data access to a user name. This is the value for the second part of a multi-part context.
  • Maximum Length: 255
    The value of the security context associated with a role. For example, for a specific business unit, a financials job role is assigned the security context of that business unit. This value can be used as a criteria for assigning data access to a user name. This is the value for the third part of a multi-part context.
  • Title: User Name
    The unique identifier for a user defined in the application that allows account access.
  • Title: User Role Data Assignment Identifier
    The numerical value that uniquely identifies a user data role.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : dataSecurities-item-response
Type: object
Show Source
  • Title: Active
    Maximum Length: 1
    Default Value: true
    Indicates whether the data security access is active. The default value is ACTIVE.
  • Read Only: true
    Maximum Length: 64
    The user who created the row.
  • Read Only: true
    The date and time when the row was created.
  • Read Only: true
    The date and time when the row was last updated.
  • Read Only: true
    Maximum Length: 64
    The user who last updated the row.
  • Read Only: true
    Maximum Length: 32
    The session login of the user who last updated the row.
  • Links
  • Title: Role
    Maximum Length: 256
    The technical name of role where the data security assignment applies to the user. The role must be assigned to the user separately.
  • Title: Role Name
    The name of the role for which the data security assignment is applicable. You must separately assign the role to the user.
  • Title: Role Name
    Read Only: true
    Maximum Length: 240
    The name of the role for which the data security assignment is applicable. You must separately assign the role to the user.
  • Title: Security Context
    Maximum Length: 255
    The category of data access that is required for the role. The category includes business unit, asset book, and inventory organization.
  • Title: Security Context Value
    Maximum Length: 255
    The value of the security context associated with a role. For example, for a specific business unit, a financials job role is assigned the security context of that business unit. This value can be used as a criteria for assigning data access to a user name. This is the value for a single-part security context or the value for the first part of a multi-part context.
  • Maximum Length: 255
    The value of the security context associated with a role. For example, for a specific business unit, a financials job role is assigned the security context of that business unit. This value can be used as a criteria for assigning data access to a user name. This is the value for the second part of a multi-part context.
  • Maximum Length: 255
    The value of the security context associated with a role. For example, for a specific business unit, a financials job role is assigned the security context of that business unit. This value can be used as a criteria for assigning data access to a user name. This is the value for the third part of a multi-part context.
  • Title: User Name
    The unique identifier for a user defined in the application that allows account access.
  • Title: User Name
    Read Only: true
    Maximum Length: 100
    The user name that is a unique identifier of the user who allows account access. The user is defined in the application.
  • Title: User Role Data Assignment Identifier
    The numerical value that uniquely identifies a user data role.
Back to Top

Examples

The following example shows how to update a user assignment by submitting a PATCH request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/dataSecurities/300100089632748

Example Request Payload

The following example shows the contents of the request body in JSON format:

{
"ActiveFlag": false
}

Example of Response Header

The following shows an example of the response header.

Status: HTTP/1.1 200 OK
Content-Type : application/vnd.oracle.adf.resourceitem+json
application/json

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
    "ActiveFlag": false,
    "UserRoleDataAssignmentId": 300100089632748,
    "Rolerf" : "Financial Analyst",
    "Userrf" : "FUSION_APPS_FSCM_ENT_MANAGER",
    "SecurityContext" : "Asset book",
    "SecurityContextValue" : "VISION LEASE CORPORATE BOOK",
    "UserName" : "FUSION_APPS_FSCM_ENT_MANAGER",
    "RoleNameCr" : "Financial Analyst",
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRESTApi/resources/11.13.18.05/datasecurities/300100089632748",
            "name": "datasecurities",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRESTApi/resources/11.13.18.05/datasecurities/300100089632748",
            "name": "datasecurities",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRESTApi/resources/11.13.18.05/datasecurities/300100089632748/lov/DataSecurityAM_UserNameLov1_1",
            "name": "DataSecurityAM_UserNameLov1_1",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername.fa.us2.oraclecloud.com/fscmRESTApi/resources/11.13.18.05/datasecurities/300100089632748/lov/DataSecurityAM_RoleP1_1",
            "name": "DataSecurityAM_RoleP1_1",
            "kind": "collection"
        }
    ]
}
Back to Top