# DoorLockTrait.GetUserCommand.Response

# DoorLockTrait.GetUserCommand.Response


```
class DoorLockTrait.GetUserCommand.Response : ClusterStruct
```

<br />

*** ** * ** ***

Returns the user for the specified `userIndex`.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response.CommandFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this command's response fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#Response(kotlin.UShort,kotlin.String,kotlin.UInt,com.google.home.matter.standard.DoorLockTrait.UserStatusEnum,com.google.home.matter.standard.DoorLockTrait.UserTypeEnum,com.google.home.matter.standard.DoorLockTrait.CredentialRuleEnum,kotlin.collections.List,kotlin.UByte,kotlin.UByte,kotlin.UShort)( userIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, userName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, userUniqueId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?, userStatus: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.UserStatusEnum?, userType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.UserTypeEnum?, credentialRule: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.CredentialRuleEnum?, credentials: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.CredentialStruct>?, creatorFabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?, lastModifiedFabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?, nextUserIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html? )` Creates a response payload from the GetUser command. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#creatorFabricIndex()` The user's creator fabric index. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.CredentialRuleEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#credentialRule()` The credential rule that can be applied to the user. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.CredentialStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#credentials()` The user's credentials. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#lastModifiedFabricIndex()` The user's last modifier fabric index. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#nextUserIndex()` The next occupied user index in the database, which is useful for quickly identifying occupied user slots in the database. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#userIndex()` The unique identifier for the user. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#userName()` The user's name. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.UserStatusEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#userStatus()` The status of the user. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.UserTypeEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#userType()` The type of the user. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.GetUserCommand.Response#userUniqueId()` The unique user id of the user. |

## Public constructors

### Response

```
Response(
    userIndex: UShort,
    userName: String? = null,
    userUniqueId: UInt? = null,
    userStatus: DoorLockTrait.UserStatusEnum? = null,
    userType: DoorLockTrait.UserTypeEnum? = null,
    credentialRule: DoorLockTrait.CredentialRuleEnum? = null,
    credentials: List<DoorLockTrait.CredentialStruct>? = null,
    creatorFabricIndex: UByte? = null,
    lastModifiedFabricIndex: UByte? = null,
    nextUserIndex: UShort? = null
)
```

Creates a response payload from the GetUser command.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### creatorFabricIndex

```
val creatorFabricIndex: UByte?
```

The user's creator fabric index.

### credentialRule

```
val credentialRule: DoorLockTrait.CredentialRuleEnum?
```

The credential rule that can be applied to the user.

### credentials

```
val credentials: List<DoorLockTrait.CredentialStruct>?
```

The user's credentials.

### lastModifiedFabricIndex

```
val lastModifiedFabricIndex: UByte?
```

The user's last modifier fabric index.

### nextUserIndex

```
val nextUserIndex: UShort?
```

The next occupied user index in the database, which is useful for quickly identifying occupied user slots in the database.

### userIndex

```
val userIndex: UShort
```

The unique identifier for the user.

### userName

```
val userName: String?
```

The user's name.

### userStatus

```
val userStatus: DoorLockTrait.UserStatusEnum?
```

The status of the user.

### userType

```
val userType: DoorLockTrait.UserTypeEnum?
```

The type of the user.

### userUniqueId

```
val userUniqueId: UInt?
```

The unique user id of the user.