---
title: "homeAccessControl(for:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmhome/homeaccesscontrol(for:)"
---

# homeAccessControl(for:)

Retrieves the access level of a user associated with the home.

## Declaration

```swift
func homeAccessControl(for user: HMUser) -> HMHomeAccessControl
```

## Parameters

- `user`: The user whose access level you wish to retrieve.

## Return Value

Return Value The access level associated with the user.

## See Also

### Controlling user access

- [HMHomeAccessControl](homekit/hmhomeaccesscontrol.md)
- [HMAccessControl](homekit/hmaccesscontrol.md)
- [HMUserFailedAccessoriesKey](homekit/hmuserfailedaccessorieskey.md)
