Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Data Entitlement and Access Control

Josh Horton edited this page Jan 25, 2021 · 13 revisions

Data Entitlement and Access Control

The IBM Food Trust™ solution provides access control capability for all XML data uploaded to the network by member organizations. This enables the data submitter to set the access control data entitlement mode for each XML message at the time of submission, as follows:

Private
The data is only visible to the submitting organization, unless it is shared via explicit grant. (e.g. event data pertaining to an organization’s internal processes, location master data for private locations or pieces of equipment.)

Restricted
The data is shared only with the organizations that are explicitly referenced in the XML document. These are typically business transaction partners that are identified in Purchase Order, Despatch Advice (aka ASN) and Receiving Advice transactions.

Linked
The data is enabled for sharing with all organizations up and down the supply chain for a specific trade item only, such as an SGTIN. These are typically supply chain events, which are shared through a process of cross-referencing data such as facility IDs and event IDs.

Assigning Entitlement Mode on Data Submission

Entitlement mode is specified with an IFT-Entitlement-Mode header in the data submission request. If the entitlement mode is not specified, a default entitlement mode is applied, based on the type of XML document:

Table 1. Default Data Entitlement Modes by Data Type
Default Entitlement Mode Data Types
Restricted Purchase Order transactions
Despatch Advice transactions
Receive Advice transactions
Linked EPCIS Events
Object Master Data
Location Master Data
Private Data Payload*
Documents**

* A document submitted as a Data Payload is expected to have explicit overrides for non-private use.
** Documents, including PDFs and other file and format types, uploaded using the Documents application.

Valid Entitlement Mode Headers on Data Submission

  • Restricted: IFT-Entitlement-Mode: restricted
  • Linked: IFT-Entitlement-Mode: linked
  • Private: IFT-Entitlement-Mode: private

If no IFT-Entitlement-Mode header is provided on data submission, the default mode will be applied based on the XML document type, as described previously in Table 1.

Specifying an invalid entitlement value will return the following error message:

{
  "message": "bad_entitlement_mode_value is not a valid IFT-Entitlement-Mode header value!"
}

Entitlement and Access Control for Existing Data

Existing data in the IBM Food Trust solution will be migrated to the new access control scheme, using the default entitlement modes for each XML document type, as described previously in Table 1.

Clone this wiki locally