---
title: permissionDenied
framework: Media Player
role: symbol
role_heading: Type Property
platforms: [iOS 9.3+, iPadOS 9.3+, Mac Catalyst 13.1+, macOS 10.14.2+, tvOS 9.0+, visionOS 1.0+, watchOS 5.0+]
path: mediaplayer/mperror/permissiondenied
---

# permissionDenied

The operation can’t complete because the user doesn’t have permission for the request.

## Declaration

```swift
static var permissionDenied: MPError.Code { get }
```

## See Also

### Error code constants

- [cancelled](mediaplayer/mperror/cancelled.md)
- [cloudServiceCapabilityMissing](mediaplayer/mperror/cloudservicecapabilitymissing.md)
- [unknown](mediaplayer/mperror/unknown.md)
- [networkConnectionFailed](mediaplayer/mperror/networkconnectionfailed.md)
- [notFound](mediaplayer/mperror/notfound.md)
- [notSupported](mediaplayer/mperror/notsupported.md)
- [requestTimedOut](mediaplayer/mperror/requesttimedout.md)
