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 | |
---|---|
consentStore |
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 | |
---|---|
userId |
Required. User ID to evaluate consents for. |
resourceAttributes |
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 |
requestAttributes |
Required. The values of request attributes associated with this access request. An object containing a list of |
responseView |
Optional. The view for |
pageSize |
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. |
pageToken |
Optional. Token to retrieve the next page of results, or empty to get the first page. |
Union field
|
|
consentList |
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 |
nextPageToken |
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 | |
---|---|
dataId |
The unique identifier of the evaluated resource. |
consented |
Whether the resource is consented for the given use. |
consentDetails |
The resource names of all evaluated An object containing a list of |