---
title: PHPhotosError.Code.accessUserDenied
framework: photos
role: symbol
role_heading: Case
path: photos/phphotoserror-swift.struct/code/accessuserdenied
---

# PHPhotosError.Code.accessUserDenied

An error that indicates the user denies access.

## Declaration

```swift
case accessUserDenied
```

## See Also

### Error Codes

- [PHPhotosError.Code.accessRestricted](photos/phphotoserror-swift.struct/code/accessrestricted.md)
- [PHPhotosError.Code.changeNotSupported](photos/phphotoserror-swift.struct/code/changenotsupported.md)
- [PHPhotosError.Code.identifierNotFound](photos/phphotoserror-swift.struct/code/identifiernotfound.md)
- [PHPhotosError.Code.internalError](photos/phphotoserror-swift.struct/code/internalerror.md)
- [invalid](photos/phphotoserror-swift.struct/code/invalid.md)
- [PHPhotosError.Code.invalidResource](photos/phphotoserror-swift.struct/code/invalidresource.md)
- [PHPhotosError.Code.libraryVolumeOffline](photos/phphotoserror-swift.struct/code/libraryvolumeoffline.md)
- [PHPhotosError.Code.libraryInFileProviderSyncRoot](photos/phphotoserror-swift.struct/code/libraryinfileprovidersyncroot.md)
- [PHPhotosError.Code.limitExceeded](photos/phphotoserror-swift.struct/code/limitexceeded.md)
- [PHPhotosError.Code.missingResource](photos/phphotoserror-swift.struct/code/missingresource.md)
- [PHPhotosError.Code.multipleIdentifiersFound](photos/phphotoserror-swift.struct/code/multipleidentifiersfound.md)
- [PHPhotosError.Code.networkAccessRequired](photos/phphotoserror-swift.struct/code/networkaccessrequired.md)
- [PHPhotosError.Code.networkError](photos/phphotoserror-swift.struct/code/networkerror.md)
- [PHPhotosError.Code.notEnoughSpace](photos/phphotoserror-swift.struct/code/notenoughspace.md)
- [PHPhotosError.Code.operationInterrupted](photos/phphotoserror-swift.struct/code/operationinterrupted.md)
