---
title: "ZeyOS.ObjectUser"
description: "ZeyOS.Object"
canonical_url: "https://www.zeyos.com/zymba/ref/zeyos/zeyos-objectuser"
markdown_url: "https://www.zeyos.com/ai/guide/zymba/ref/zeyos/zeyos-objectuser.md"
section: "zymba-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/zymbaref.json"
source_sha256: "05a361c6ddc32e74f4a6dc16fd06f218210ff1b7ce57f26ca1994bfffc407915"
---

# ZeyOS.ObjectUser

## ZeyOS.ObjectUser

```
object @ZeyOS.ObjectUser(@ZeyOS.Object) {
	construct(?int $id) {}
	getLang(): string {}
	getLastLogin(): int {}
	getSettings(): object {}
	hasAccessTo(@ZeyOS.Object $object, bool $writable): bool {}
	hasPermission(string $identifier, bool $writable): bool {}
	hasPermissionApp(int $id, bool $writable): bool {}
	hasPermissionFork(int $id, bool $writable): bool {}
	inGroup(int $id, bool $writable): bool {}
	isAdmin(): bool {}
	isApiOnly(): bool {}
	isNoPublic(): bool {}
	listGroups(): object {}
	listPermissions(): object {}
	listPermittedApps(): object {}
	listPermittedForks(): object {}
	setPassword(string $password): $this {}
	setSettings(object $settings): $this {}
	verifyPassword(string $password): bool {}
}
```

### Prototype

**[ZeyOS.Object](#)**

## Methods


### `$this.construct()`


```code
$this.construct(?int $id): void
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| id | `?int`  |  | new |




### `$this.getLang()`


```code
$this.getLang(): string
```

##### Returns

| Type | Value |
| --- | ---  |
| `string` |  |




### `$this.getLastLogin()`


```code
$this.getLastLogin(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |
| `null` |  |




### `$this.getSettings()`


```code
$this.getSettings(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` |  |




### `$this.hasAccessTo()`


```code
$this.hasAccessTo(@ZeyOS.Object $object, bool $writable): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| object | `@ZeyOS.Object`  |  | null |
| writable | `bool`  |  | false |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.hasPermission()`


```code
$this.hasPermission(string $identifier, bool $writable): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| identifier | `string`  |  | "" |
| writable | `bool`  |  | false |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.hasPermissionApp()`


```code
$this.hasPermissionApp(int $id, bool $writable): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| id | `int`  |  | 0 |
| writable | `bool`  |  | false |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.hasPermissionFork()`


```code
$this.hasPermissionFork(int $id, bool $writable): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| id | `int`  |  | 0 |
| writable | `bool`  |  | false |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.inGroup()`


```code
$this.inGroup(int $id, bool $writable): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| id | `int`  |  | 0 |
| writable | `bool`  |  | false |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.isAdmin()`


```code
$this.isAdmin(): bool
```

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.isApiOnly()`


```code
$this.isApiOnly(): bool
```

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.isNoPublic()`


```code
$this.isNoPublic(): bool
```

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.listGroups()`


```code
$this.listGroups(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [id: writable, ...] |




### `$this.listPermissions()`


```code
$this.listPermissions(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [identifier: writable, ...] |




### `$this.listPermittedApps()`


```code
$this.listPermittedApps(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [id: writable, ...] |




### `$this.listPermittedForks()`


```code
$this.listPermittedForks(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [id: writable, ...] |




### `$this.setPassword()`


```code
$this.setPassword(string $password): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| password | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.setSettings()`


```code
$this.setSettings(object $settings): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| settings | `object`  |  | [] |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.verifyPassword()`


```code
$this.verifyPassword(string $password): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| password | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |
