<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKAuthorizationStatus",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKAuthorizationStatus"
  },
  "title" : "HKAuthorizationStatus"
}
-->

# HKAuthorizationStatus

Constants indicating the authorization status for a particular data type.

```
enum HKAuthorizationStatus
```

## Overview

This status indicates whether  the user has authorized your app to save data of the given type.

To help maintain the privacy of sensitive health data, HealthKit does not tell you when the user denies your app permission to query data. Instead, it simply appears as if HealthKit does not have any data matching your query. Your app will receive only the data that it has written to HealthKit. Data from other sources remains hidden from your app. For more information on privacy in HealthKit, see `HealthKit`.

## Topics

### Constants

[`HKAuthorizationStatusNotDetermined`](/documentation/HealthKit/HKAuthorizationStatus/notDetermined)

The user has not yet chosen to authorize access to the specified data type.

[`HKAuthorizationStatusSharingDenied`](/documentation/HealthKit/HKAuthorizationStatus/sharingDenied)

The user has explicitly denied your app permission to save data of the specified type.

[`HKAuthorizationStatusSharingAuthorized`](/documentation/HealthKit/HKAuthorizationStatus/sharingAuthorized)

The user has explicitly authorized your app to save data of the specified type.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)