Accessing Portfolio/Shared Samples ================================== A respondent profile (``account``) to a questionnaire will access its response through the URL `/app//scorecard//` and the API calls used to build the page (i.e. `/api//sample/` `/api//sample//content`, `/api//sample//benchmarks`, `/api//assets/`) using ``account`` for profile slug. When the respondent shares a completed questionnaire with a receiving profile (``grantee``), the grantee will access the response through the same URL and APIs but using ``grantee`` instead for profile slug. Therefore permissions are checked in two steps: 1. The `Web/API Gateway `_ checks that the HTTP ``request.user`` has a direct role on ``. 2. The Practices Survey Platform itself checks that the `` belongs to `` or that `` has a `Portfolio` that extends past the date the sample was created (see `survey.mixins.SampleMixin.get_sample`).