---
title: errorAuthorizationNotDetermined
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkerror/errorauthorizationnotdetermined
---

# errorAuthorizationNotDetermined

The app hasn’t yet asked the user for the authorization required to complete the task.

## Declaration

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

## Discussion

Discussion This error occurs when your app doesn’t request proper authorization before calling any other HealthKit methods. For more information on setting up HealthKit, see HealthKit.

## 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)
- [errorRequiredAuthorizationDenied](healthkit/hkerror/errorrequiredauthorizationdenied.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)
