In the Open Data Product Specification (ODPS), access roles and visibility rules are declared using two key mechanisms:
The visibility field inside the product.details section defines the overall access scope of the data product.
product:
details:
en:
visibility: public # or 'internal' or 'restricted'public: Accessible by anyoneinternal: Limited to organization users or authenticated accessrestricted: Subject to approval or contractual terms
This field is mandatory and serves as the first-level access control.
You can define access methods and control policies using the dataAccess section, including API tokens, IP restrictions, or external access management platforms.
dataAccess:
API:
description:
en: Authenticated API access
type: REST
authenticationMethod: OAuthThis structure allows finer-grained role- or org-based access restrictions to be encoded declaratively.
- Use
visibilityfor high-level exposure settings (mandatory). - Use
dataAccessto declare role-based access control logic (optional). - For monetized or SLA-bound products, pair with
pricingPlans,license, andcontractfor policy enforcement.