# Google Cloud Privileged Access Manager V1 Client - Class AccessControlEntry (0.4.4)

0.4.4 (latest) 0.4.3 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Privileged Access Manager V1 Client class AccessControlEntry.

`AccessControlEntry` is used to control who can do some operation.

Generated from protobuf message `google.cloud.privilegedaccessmanager.v1.AccessControlEntry`

## Namespace

Google \\ Cloud \\ PrivilegedAccessManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ principals` | `string[]` Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: <https://cloud.google.com/iam/docs/principal-identifiers#v1> |

### getPrincipals

Optional. Users who are allowed for the operation. Each entry should be a
valid v1 IAM principal identifier. The format for these is documented at:
<https://cloud.google.com/iam/docs/principal-identifiers#v1>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPrincipals

Optional. Users who are allowed for the operation. Each entry should be a
valid v1 IAM principal identifier. The format for these is documented at:
<https://cloud.google.com/iam/docs/principal-identifiers#v1>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |