<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKObjectType/requiresPerObjectAuthorization()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKObjectType(im)requiresPerObjectAuthorization"
  },
  "title" : "requiresPerObjectAuthorization()"
}
-->

# requiresPerObjectAuthorization()

Returns a Boolean that indicates whether the data type requires per-object authorization.

```
func requiresPerObjectAuthorization() -> Bool
```

## Discussion

If this method returns <doc://com.apple.documentation/documentation/Swift/true>, you must call [`requestPerObjectReadAuthorization(for:predicate:completion:)`](/documentation/HealthKit/HKHealthStore/requestPerObjectReadAuthorization(for:predicate:completion:)) each time you want to query for the data type. The user can then select the individual samples that the app has permission to read. The system always prompts the user for permission, regardless of whether they’ve previously granted permission.

> Important:
> Using the ``doc://com.apple.healthkit/documentation/HealthKit/HKHealthStore/requestAuthorization(toShare:read:)`` method to request read access to any data types that require per-object authorization fails with an ``doc://com.apple.healthkit/documentation/HealthKit/HKError/Code/errorInvalidArgument`` error.

## See Also

[`HKPrescriptionType`](/documentation/HealthKit/HKPrescriptionType)

A type that identifies samples that store a prescription.

[`HKVisionPrescriptionTypeIdentifier`](/documentation/HealthKit/HKVisionPrescriptionTypeIdentifier)

A type identifier for vision prescription samples.



---

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)