# Google.Cloud.OsLogin.Common - Class PosixAccount (3.4.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.4.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.3.0/Google.Cloud.OsLogin.Common.PosixAccount)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.2.0/Google.Cloud.OsLogin.Common.PosixAccount)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.1.0/Google.Cloud.OsLogin.Common.PosixAccount)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.0.0/Google.Cloud.OsLogin.Common.PosixAccount)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/2.3.0/Google.Cloud.OsLogin.Common.PosixAccount)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/2.2.0/Google.Cloud.OsLogin.Common.PosixAccount)

    public sealed class PosixAccount : IMessage<PosixAccount>, IEquatable<PosixAccount>, IDeepCloneable<PosixAccount>, IBufferMessage, IMessage

Reference documentation and code samples for the Google.Cloud.OsLogin.Common class PosixAccount.

The POSIX account information associated with a Google account.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PosixAccount

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PosixAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PosixAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PosixAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.OsLogin.Common](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common)

## Assembly

Google.Cloud.OsLogin.Common.dll

## Constructors

### PosixAccount()

    public PosixAccount()

### PosixAccount(PosixAccount)

    public PosixAccount(PosixAccount other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount` |

## Properties

### AccountId

    public string AccountId { get; set; }

Output only. A POSIX account identifier.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Gecos

    public string Gecos { get; set; }

The GECOS (user information) entry for this account.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Gid

    public long Gid { get; set; }

The default group ID.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### HomeDirectory

    public string HomeDirectory { get; set; }

The path to the home directory for this account.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Output only. The canonical resource name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### OperatingSystemType

    public OperatingSystemType OperatingSystemType { get; set; }

The operating system type where this account applies.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.OperatingSystemType` |   |

### PosixAccountName

    public PosixAccountName PosixAccountName { get; set; }

[PosixAccountName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccountName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount#Google_Cloud_OsLogin_Common_PosixAccount_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccountName` |   |

### Primary

    public bool Primary { get; set; }

Only one POSIX account can be marked as primary.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Shell

    public string Shell { get; set; }

The path to the logic shell for this account.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SystemId

    public string SystemId { get; set; }

System identifier for which account the username or uid applies to.
By default, the empty value is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Uid

    public long Uid { get; set; }

The user ID.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### Username

    public string Username { get; set; }

The username of the POSIX account.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |