- [HTTP request](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.CheckFeaturePolicyMembersResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#body.aspect_1)
- [DirectorySource](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#DirectorySource)
- [MemberCheck](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#MemberCheck)
  - [JSON representation](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#MemberCheck.SCHEMA_REPRESENTATION)

Checks members for `https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines#Engine.FIELDS.feature_policies` against the project's directory, as `https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/patch#google.cloud.discoveryengine.v1alpha.EngineService.UpdateEngine` does when it saves them, and saves nothing.

### HTTP request

Choose an endpoint:
global us   
`POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}:checkFeaturePolicyMembers`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The engine resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "members": [ { object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines#Member`) } ] } ``` |

| Fields ||
|---|---|
| `members[]` | ``object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines#Member`)`` Required. The members to check, in the form a policy takes them. At least 1 and at most 100. `verification` is ignored. |

### Response body

Response for `https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#google.cloud.discoveryengine.v1alpha.EngineService.CheckFeaturePolicyMembers` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "directorySource": enum (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#DirectorySource`), "memberChecks": [ { object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#MemberCheck`) } ] } ``` |

| Fields ||
|---|---|
| `directorySource` | ``enum (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#DirectorySource`)`` Where the project's groups are looked up. |
| `memberChecks[]` | ``object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/checkFeaturePolicyMembers#MemberCheck`)`` One result per requested member, in request order. Members are checked independently, so two emails for the same Google group both pass. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/discoveryengine.readwrite`
- `https://www.googleapis.com/auth/discoveryengine.serving.readwrite`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `discoveryengine.engines.update`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## DirectorySource

Where the project's groups are looked up. Computed from the project's identity setup on each request.

| Enums ||
|---|---|
| `DIRECTORY_SOURCE_UNSPECIFIED` | The source couldn't be determined; every group is `CHECK_FAILED`. |
| `GOOGLE` | Google identity (Workspace or Cloud Identity). Groups are emails. |
| `SCIM` | Workforce Identity Federation with SCIM groups in the project's workforce pool. |
| `NONE` | Workforce Identity Federation without SCIM groups: no directory to check against. |

## MemberCheck

The result for one requested member.

| JSON representation |
|---|
| ``` { "member": { object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines#Member`) }, "status": { object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/Shared.Types/ListOperationsResponse#Status`) } } ``` |

| Fields ||
|---|---|
| `member` | ``object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines#Member`)`` The member as `https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/patch#google.cloud.discoveryengine.v1alpha.EngineService.UpdateEngine` would save it: `id` normalized, `displayName` taken from the directory when it has one, and `verification` set. Echoes the request's member when `status` is an INVALID_ARGUMENT from the member's format. |
| `status` | ``object (`https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/Shared.Types/ListOperationsResponse#Status`)`` OK when the member is valid and, for a group, in the directory. Otherwise INVALID_ARGUMENT for a malformed member or a group the directory doesn't have, and UNAVAILABLE for a Google group the directory couldn't be asked about. `https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.engines/patch#google.cloud.discoveryengine.v1alpha.EngineService.UpdateEngine` fails on all of these, except that it leaves out an allowed group the directory doesn't have, saves the other members, and lists the group in `Engine.feature_policy_rejections`. |