Full name: projects.locations.datasets.consentStores.evaluateUserConsents
Evaluates the user's Consents
for all matching User data mappings
.
Note: User data mappings are indexed asynchronously, which can cause a slight delay between the time mappings are created or updated and when they are included in consentStores.evaluateUserConsents results.
HTTP request
POST https://healthcare.googleapis.com/v1beta1/{consentStore=projects/*/locations/*/datasets/*/consentStores/*}:evaluateUserConsents
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
consent |
Required. Name of the consent store to retrieve User data mappings from. Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "userId": string, "resourceAttributes": { string: string, ... }, "requestAttributes": { string: string, ... }, "responseView": enum( |
Fields | |
---|---|
user |
Required. User ID to evaluate consents for. |
resource |
Optional. The values of resource attributes associated with the resources being requested. If no values are specified, then all resources are queried. An object containing a list of |
request |
Required. The values of request attributes associated with this access request. An object containing a list of |
response |
Optional. The view for |
page |
Optional. Limit on the number of User data mappings to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
page |
Optional. Token to retrieve the next page of results, or empty to get the first page. |
Union field
|
|
consent |
Optional. Specific |
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"results": [
{
object( |
Fields | |
---|---|
results[] |
The consent evaluation result for each |
next |
Token to retrieve the next page of results, or empty if there are no more results in the list. This token is valid for 72 hours after it is created. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcare
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ResponseView
The supported views for EvaluateUserConsentsResponse
.
Enums | |
---|---|
RESPONSE_VIEW_UNSPECIFIED |
No response view specified. The API will default to the BASIC view. |
BASIC |
Only the dataId and consented fields are populated in the response. |
FULL |
All fields within the response are populated. When set to FULL , all ACTIVE Consents are evaluated even if a matching policy is found during evaluation. |
Result
The consent evaluation result for a single dataId
.
JSON representation |
---|
{
"dataId": string,
"consented": boolean,
"consentDetails": {
string: {
object( |
Fields | |
---|---|
data |
The unique identifier of the evaluated resource. |
consented |
Whether the resource is consented for the given use. |
consent |
The resource names of all evaluated An object containing a list of |