Create a data assignment for a user

post

/fscmRestApi/resources/11.13.18.05/dataSecurities

Request

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.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
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 create a user assignment record by submitting a POST request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/dataSecurities

Example Request Payload

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

{
"SecurityContext" : "Ledger",
"SecurityContextValue" : "BalTranSCb=CALXCUR",
"RoleNameCr" : "Financial Analyst",
"UserName" : "FUSION_APPS_FSCM_ENT_MANAGER"
}

Example of Response Body

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

{
  "ActiveFlag" : true,
  "UserRoleDataAssignmentId" : 300100089633733,
  "Rolerf" : null,
  "Userrf" : null,
  "SecurityContext" : "Ledger",
  "SecurityContextValue" : "BalTranSCb=CALXCUR",
  "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/300100089633733",
    "name" : "datasecurities",
    "kind" : "item"
  }, {
    "rel" : "canonical",
    "href" : "https://servername.fa.us2.oraclecloud.com/fscmRESTApi/resources/11.13.18.05/datasecurities/300100089633733",
    "name" : "datasecurities",
    "kind" : "item"
  }, {
    "rel" : "lov",
    "href" : "https://servername.fa.us2.oraclecloud.com/fscmRESTApi/resources/11.13.18.05/datasecurities/300100089633733/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/300100089633733/lov/DataSecurityAM_RoleP1_1",
    "name" : "DataSecurityAM_RoleP1_1",
    "kind" : "collection"
  } ]
Back to Top