- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.LegacyPlaybookPermissionsOptionsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#body.aspect_1)
- [AccessPermissionProfileInfoOption](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#AccessPermissionProfileInfoOption)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#AccessPermissionProfileInfoOption.SCHEMA_REPRESENTATION)
- [UserProfileRole](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#UserProfileRole)
- [UserProfileType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#UserProfileType)
- [LegacyPlaybookSocRole](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRole)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRole.SCHEMA_REPRESENTATION)
- [LegacyPlaybookSocRoleAccess](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRoleAccess)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRoleAccess.SCHEMA_REPRESENTATION)

**Full name**: projects.locations.instances.legacyPlaybooks.legacyPermissionsOptions

Returns playbook access permission options. This should be used to fetch information when creating a new playbook, where we do not have yet workflow guid.

### HTTP request

`POST https://{endpoint}/v1alpha/{instance}/legacyPlaybooks:legacyPermissionsOptions`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. The instance to get the permissions options for. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "legacyPayload": [ string ] } ``` |

| Fields ||
|---|---|
| `legacyPayload[]` | `string` Required. The playbook environments. |

### Response body

LegacyPlaybookPermissionsOptionsResponse is a response for getting the permissions options.

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

| JSON representation |
|---|
| ``` { "userOptions": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#AccessPermissionProfileInfoOption`) } ], "socRolesOptions": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRole`) } ] } ``` |

| Fields ||
|---|---|
| `userOptions[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#AccessPermissionProfileInfoOption`)`` Optional. UserOptions is a list of user options. |
| `socRolesOptions[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRole`)`` Optional. LegacyPlaybookSocRolesOptions is a list of soc roles options. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

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 `instance` resource:

- `chronicle.legacyPlaybooks.get`

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

## AccessPermissionProfileInfoOption

AccessPermissionProfileInfoOption represents a user option for access permissions.

| JSON representation |
|---|
| ``` { "firstName": string, "lastName": string, "fullName": string, "role": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#UserProfileRole`), "socRoleId": string, "socRoleIds": [ string ], "email": string, "userName": string, "imageBase64": string, "userType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#UserProfileType`), "allowEditOption": boolean, "hasModuleEditPermissions": boolean, "hasAllEnvsPermissions": boolean, "hasAllEnvsModulePermissions": boolean } ``` |

| Fields ||
|---|---|
| `firstName` | `string` Required. FirstName is the first name of the user. |
| `lastName` | `string` Required. LastName is the last name of the user. |
| `fullName` | `string` Required. FullName is the full name of the user. |
| `role` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#UserProfileRole`)`` Required. Role is the role of the user. |
| `socRoleId` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. SocRoleId is the identifier of the soc role. |
| `socRoleIds[]` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. SocRoleIds is a list of identifiers of the soc roles. |
| `email` | `string` Required. Email is the email of the user. |
| `userName` | `string` Required. UserName is the user name of the user. |
| `imageBase64` | `string` Optional. ImageBase64 is the base64 image of the user. |
| `userType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#UserProfileType`)`` Required. UserType is the type of the user. |
| `allowEditOption` | `boolean` Optional. AllowEditOption indicates if the user is allowed to edit. |
| `hasModuleEditPermissions` | `boolean` Optional. HasModuleEditPermissions indicates if the user has module edit permissions. |
| `hasAllEnvsPermissions` | `boolean` Optional. HasAllEnvsPermissions indicates if the user has all environments permissions. |
| `hasAllEnvsModulePermissions` | `boolean` Optional. HasAllEnvsModulePermissions indicates if the user has all environments module permissions. |

## UserProfileRole

UserProfileRole represents the role of a user.

| Enums ||
|---|---|
| `USER_PROFILE_ROLE_UNSPECIFIED` | The role is unspecified. |
| `ANALYST` | The role is analyst. |
| `ADMIN` | The role is admin. |

## UserProfileType

UserProfileType represents the type of a user profile.

| Enums ||
|---|---|
| `USER_PROFILE_TYPE_UNSPECIFIED` | The user profile type is unspecified. |
| `WINDOWS` | The user profile type is windows. |
| `INTERNAL` | The user profile type is internal. |
| `EXTERNAL` | The user profile type is external. |
| `SUPPORT` | The user profile type is support. |
| `INCIDENT_MANAGER` | The user profile type is incident manager. |

## LegacyPlaybookSocRole

LegacyPlaybookSocRole represents a soc role.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "additionalRolesAccess": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRoleAccess`) } ], "id": integer, "tenantId": string, "creationTimeUnixTimeInMs": string, "modificationTimeUnixTimeInMs": string, "isDefault": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Name is the name of the soc role. |
| `displayName` | `string` Optional. DisplayName is the display name of the soc role. |
| `additionalRolesAccess[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyPermissionsOptions#LegacyPlaybookSocRoleAccess`)`` Optional. AdditionalRolesAccess is a list of additional roles access. |
| `id` | `integer` Optional. Id is the unique identifier of the soc role. |
| `tenantId` | `string` Optional. TenantId is the tenant id of the soc role. |
| `creationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. CreationTimeUnixTimeInMs is the creation time of the soc role in milliseconds. |
| `modificationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. ModificationTimeUnixTimeInMs is the modification time of the soc role in milliseconds. |
| `isDefault` | `boolean` Optional. IsDefault indicates if the soc role is default. |

## LegacyPlaybookSocRoleAccess

LegacyPlaybookSocRoleAccess represents a soc role access.

| JSON representation |
|---|
| ``` { "id": string, "name": string } ``` |

| Fields ||
|---|---|
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. Id is the unique identifier of the soc role access. |
| `name` | `string` Required. Name is the name of the soc role access. |