---
title: errorRequiredAuthorizationDenied
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkerror/errorrequiredauthorizationdenied
---

# errorRequiredAuthorizationDenied

The user hasn’t granted the application authorization to access all the required clinical record types.

## Declaration

```swift
static var errorRequiredAuthorizationDenied: HKError.Code { get }
```

## Discussion

Discussion You can specify required clinical record types using the NSHealthRequiredReadAuthorizationTypeIdentifiers Info.plist key.

## See Also

### Accessing errors

- [HKError.Code](healthkit/hkerror/code.md)
- [noError](healthkit/hkerror/noerror.md)
- [errorHealthDataUnavailable](healthkit/hkerror/errorhealthdataunavailable.md)
- [errorHealthDataRestricted](healthkit/hkerror/errorhealthdatarestricted.md)
- [errorInvalidArgument](healthkit/hkerror/errorinvalidargument.md)
- [errorAuthorizationDenied](healthkit/hkerror/errorauthorizationdenied.md)
- [errorAuthorizationNotDetermined](healthkit/hkerror/errorauthorizationnotdetermined.md)
- [errorDatabaseInaccessible](healthkit/hkerror/errordatabaseinaccessible.md)
- [errorUserCanceled](healthkit/hkerror/errorusercanceled.md)
- [errorAnotherWorkoutSessionStarted](healthkit/hkerror/erroranotherworkoutsessionstarted.md)
- [errorUserExitedWorkoutSession](healthkit/hkerror/erroruserexitedworkoutsession.md)
- [errorNoData](healthkit/hkerror/errornodata.md)
