---
title: requiresPerObjectAuthorization()
framework: healthkit
role: symbol
role_heading: Instance Method
path: healthkit/hkobjecttype/requiresperobjectauthorization()
---

# requiresPerObjectAuthorization()

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

## Declaration

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

## Discussion

Discussion If this method returns true, you must call 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 requestAuthorization(toShare:read:) method to request read access to any data types that require per-object authorization fails with an HKError.Code.errorInvalidArgument error.

## See Also

### Related Documentation

- [HKPrescriptionType](healthkit/hkprescriptiontype.md)
- [HKVisionPrescriptionTypeIdentifier](healthkit/hkvisionprescriptiontypeidentifier.md)

### Getting property data

- [identifier](healthkit/hkobjecttype/identifier.md)
