---
title: SRError.Code.noAuthorization
framework: sensorkit
role: symbol
role_heading: Case
path: sensorkit/srerror/code/noauthorization
---

# SRError.Code.noAuthorization

Occurs when the user declines sensor access in the Settings app.

## Declaration

```swift
case noAuthorization
```

## Discussion

Discussion This error code indicates the user denied access for the sensor on the in-app prompt, or by switching off authorization for the sensor in Settings.

## See Also

### Errors

- [SRError.Code.promptDeclined](sensorkit/srerror/code/promptdeclined.md)
- [SRError.Code.dataInaccessible](sensorkit/srerror/code/datainaccessible.md)
- [SRError.Code.fetchRequestInvalid](sensorkit/srerror/code/fetchrequestinvalid.md)
- [SRError.Code.invalidEntitlement](sensorkit/srerror/code/invalidentitlement.md)
