0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class User.

Information about a user.

Generated from protobuf message `google.backstory.User`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ product_object_id` | `string` A vendor-specific identifier to uniquely identify the entity (e.g. a GUID, LDAP, OID, or similar). This field can be used as an entity indicator for user entities. |
| `↳ userid` | `string` The ID of the user. This field can be used as an entity indicator for user entities. |
| `↳ user_display_name` | `string` The display name of the user (e.g. "John Locke"). |
| `↳ first_name` | `string` First name of the user (e.g. "John"). |
| `↳ middle_name` | `string` Middle name of the user. |
| `↳ last_name` | `string` Last name of the user (e.g. "Locke"). |
| `↳ phone_numbers` | `string[]` Phone numbers for the user. |
| `↳ personal_address` | `Location` Personal address of the user. |
| `↳ attribute` | `Attribute` Generic entity metadata attributes of the user. |
| `↳ first_seen_time` | `Google\Protobuf\Timestamp` The first observed time for a user. The value is calculated on the basis of the first time the identifier was observed. |
| `↳ account_type` | `int` Type of user account (for example, service, domain, or cloud). This is somewhat aligned to: <https://attack.mitre.org/techniques/T1078/> |
| `↳ groupid` | `string` The ID of the group that the user belongs to. Deprecated in favor of the repeated group_identifiers field. |
| `↳ group_identifiers` | `string[]` Product object identifiers of the group(s) the user belongs to A vendor-specific identifier to uniquely identify the group(s) the user belongs to (a GUID, LDAP OID, or similar). |
| `↳ windows_sid` | `string` The Microsoft Windows SID of the user. This field can be used as an entity indicator for user entities. |
| `↳ email_addresses` | `string[]` Email addresses of the user. This field can be used as an entity indicator for user entities. |
| `↳ employee_id` | `string` Human capital management identifier. This field can be used as an entity indicator for user entities. |
| `↳ title` | `string` User job title. |
| `↳ company_name` | `string` User job company name. |
| `↳ department` | `string[]` User job department |
| `↳ office_address` | `Location` User job office location. |
| `↳ managers` | `array<User>` User job manager(s). |
| `↳ hire_date` | `Google\Protobuf\Timestamp` User job employment hire date. |
| `↳ termination_date` | `Google\Protobuf\Timestamp` User job employment termination date. |
| `↳ time_off` | `array<TimeOff>` User time off leaves from active work. |
| `↳ last_login_time` | `Google\Protobuf\Timestamp` User last login timestamp. |
| `↳ last_password_change_time` | `Google\Protobuf\Timestamp` User last password change timestamp. |
| `↳ password_expiration_time` | `Google\Protobuf\Timestamp` User password expiration timestamp. |
| `↳ account_expiration_time` | `Google\Protobuf\Timestamp` User account expiration timestamp. |
| `↳ account_lockout_time` | `Google\Protobuf\Timestamp` User account lockout timestamp. |
| `↳ last_bad_password_attempt_time` | `Google\Protobuf\Timestamp` User last bad password attempt timestamp. |
| `↳ user_authentication_status` | `int` System authentication status for user. |
| `↳ role_name` | `string` System role name for user. Deprecated: use attribute.roles. |
| `↳ role_description` | `string` System role description for user. Deprecated: use attribute.roles. |
| `↳ user_role` | `int` System role for user. Deprecated: use attribute.roles. |

### getProductObjectId

A vendor-specific identifier to uniquely identify the entity (e.g. a GUID,
LDAP, OID, or similar).

This field can be used as an entity indicator for user entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProductObjectId

A vendor-specific identifier to uniquely identify the entity (e.g. a GUID,
LDAP, OID, or similar).

This field can be used as an entity indicator for user entities.

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

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

### getUserid

The ID of the user.

This field can be used as an entity indicator for user entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUserid

The ID of the user.

This field can be used as an entity indicator for user entities.

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

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

### getUserDisplayName

The display name of the user
(e.g. "John Locke").

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUserDisplayName

The display name of the user
(e.g. "John Locke").

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

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

### getFirstName

First name of the user (e.g. "John").

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFirstName

First name of the user (e.g. "John").

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

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

### getMiddleName

Middle name of the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMiddleName

Middle name of the user.

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

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

### getLastName

Last name of the user (e.g. "Locke").

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLastName

Last name of the user (e.g. "Locke").

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

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

### getPhoneNumbers

Phone numbers for the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setPhoneNumbers

Phone numbers for the user.

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

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

### getPersonalAddress

Personal address of the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Location|null` |   |

### hasPersonalAddress

### clearPersonalAddress

### setPersonalAddress

Personal address of the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Location` |

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

### getAttribute

Generic entity metadata attributes of the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Attribute|null` |   |

### hasAttribute

### clearAttribute

### setAttribute

Generic entity metadata attributes of the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Attribute` |

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

### getFirstSeenTime

The first observed time for a user.

The value is calculated on the basis of the
first time the identifier was observed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasFirstSeenTime

### clearFirstSeenTime

### setFirstSeenTime

The first observed time for a user.

The value is calculated on the basis of the
first time the identifier was observed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getAccountType

Type of user account (for example, service, domain, or cloud). This is
somewhat aligned to:
<https://attack.mitre.org/techniques/T1078/>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AccountType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.User.AccountType.md.txt). |

### setAccountType

Type of user account (for example, service, domain, or cloud). This is
somewhat aligned to:
<https://attack.mitre.org/techniques/T1078/>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AccountType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.User.AccountType.md.txt). |

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

### getGroupid

The ID of the group that the user belongs to.

Deprecated in favor of the repeated group_identifiers field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setGroupid

The ID of the group that the user belongs to.

Deprecated in favor of the repeated group_identifiers field.

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

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

### getGroupIdentifiers

Product object identifiers of the group(s) the user belongs to
A vendor-specific identifier to uniquely identify the group(s) the user
belongs to (a GUID, LDAP OID, or similar).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setGroupIdentifiers

Product object identifiers of the group(s) the user belongs to
A vendor-specific identifier to uniquely identify the group(s) the user
belongs to (a GUID, LDAP OID, or similar).

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

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

### getWindowsSid

The Microsoft Windows SID of the user.

This field can be used as an entity indicator for user entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setWindowsSid

The Microsoft Windows SID of the user.

This field can be used as an entity indicator for user entities.

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

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

### getEmailAddresses

Email addresses of the user.

This field can be used as an entity indicator for user entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setEmailAddresses

Email addresses of the user.

This field can be used as an entity indicator for user entities.

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

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

### getEmployeeId

Human capital management identifier.

This field can be used as an entity indicator for user entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEmployeeId

Human capital management identifier.

This field can be used as an entity indicator for user entities.

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

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

### getTitle

User job title.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTitle

User job title.

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

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

### getCompanyName

User job company name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCompanyName

User job company name.

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

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

### getDepartment

User job department

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setDepartment

User job department

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

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

### getOfficeAddress

User job office location.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Location|null` |   |

### hasOfficeAddress

### clearOfficeAddress

### setOfficeAddress

User job office location.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Location` |

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

### getManagers

User job manager(s).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<User>` |   |

### setManagers

User job manager(s).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<User>` |

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

### getHireDate

User job employment hire date.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasHireDate

### clearHireDate

### setHireDate

User job employment hire date.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getTerminationDate

User job employment termination date.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasTerminationDate

### clearTerminationDate

### setTerminationDate

User job employment termination date.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getTimeOff

User time off leaves from active work.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<TimeOff>` |   |

### setTimeOff

User time off leaves from active work.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<TimeOff>` |

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

### getLastLoginTime

User last login timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastLoginTime

### clearLastLoginTime

### setLastLoginTime

User last login timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLastPasswordChangeTime

User last password change timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastPasswordChangeTime

### clearLastPasswordChangeTime

### setLastPasswordChangeTime

User last password change timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getPasswordExpirationTime

User password expiration timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasPasswordExpirationTime

### clearPasswordExpirationTime

### setPasswordExpirationTime

User password expiration timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getAccountExpirationTime

User account expiration timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasAccountExpirationTime

### clearAccountExpirationTime

### setAccountExpirationTime

User account expiration timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getAccountLockoutTime

User account lockout timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasAccountLockoutTime

### clearAccountLockoutTime

### setAccountLockoutTime

User account lockout timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLastBadPasswordAttemptTime

User last bad password attempt timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastBadPasswordAttemptTime

### clearLastBadPasswordAttemptTime

### setLastBadPasswordAttemptTime

User last bad password attempt timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUserAuthenticationStatus

System authentication status for user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AuthenticationStatus](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Authentication.AuthenticationStatus.md.txt). |

### setUserAuthenticationStatus

System authentication status for user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AuthenticationStatus](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Authentication.AuthenticationStatus.md.txt). |

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

### getRoleName

System role name for user.

Deprecated: use attribute.roles.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRoleName

System role name for user.

Deprecated: use attribute.roles.

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

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

### getRoleDescription

System role description for user.

Deprecated: use attribute.roles.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRoleDescription

System role description for user.

Deprecated: use attribute.roles.

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

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

### getUserRole

System role for user.

Deprecated: use attribute.roles.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Role](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.User.Role.md.txt). |

### setUserRole

System role for user.

Deprecated: use attribute.roles.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Role](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.User.Role.md.txt). |

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