<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMHomeManager/authorizationStatus",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMHomeManager(py)authorizationStatus"
  },
  "title" : "authorizationStatus"
}
-->

# authorizationStatus

The current state of the app’s access to home data.

```
var authorizationStatus: HMHomeManagerAuthorizationStatus { get }
```

## Discussion

The first time your app uses the HomeKit framework—typically, when you create a [`HMHomeManager`](/documentation/HomeKit/HMHomeManager) instance—the system automatically prompts the user for permission to access home data. You don’t make an explicit request for access, but you can modify the behavior of your app based on the current authorization status. For example, if your app lacks access to home data, you might omit certain features from your UI.

The [`authorizationStatus`](/documentation/HomeKit/HMHomeManager/authorizationStatus) property contains a bit field that indicates the current authorization status. Your app has home data authorization only when the [`authorized`](/documentation/HomeKit/HMHomeManagerAuthorizationStatus/authorized) bit is present:

```swift
if myHomeManager.authorizationStatus.contains(.authorized) {
    // The app is authorized to access home data.
}
```

Users can revoke permission at any time in the Settings app, so your app should always be prepared to handle errors caused by lack of access.

For more information about gaining authorization to access home data, see [Enabling HomeKit in your app](/documentation/HomeKit/enabling-homekit-in-your-app).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)