Retrieve product access

GET/users/{user_id}/products/{product_id}/access

Retrieves the user's effective access to a product, including the sources that grant it (sources[]), the reason access is denied when applicable (denial_reason), and any overrides applied to the user (overrides).

The response includes an ETag representing the current revision. Send this value in the If-Match header when updating the product access to avoid overwriting a newer version.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Path Parameters

user_id*string
product_id*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/users/string/products/string/access"
{  "data": {    "denial_reason": "no_access",    "ends_at": "2019-08-24T14:15:22Z",    "has_access": true,    "object": "product_access",    "overrides": {      "duration": {        "type": "-1",        "value": 0      },      "rules_waived": true,      "schedule_id": "string"    },    "product_id": "string",    "revision": "string",    "sources": [      {        "enrollment_id": "string",        "kind": "manual"      }    ],    "starts_at": "2019-08-24T14:15:22Z",    "user_id": "string"  }}