<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHPhotoLibrary/authorizationStatus(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHPhotoLibrary(cm)authorizationStatusForAccessLevel:"
  },
  "title" : "authorizationStatus(for:)"
}
-->

# authorizationStatus(for:)

Returns the app’s authorization to access the user’s photo library for the specified access level.

```
class func authorizationStatus(for accessLevel: PHAccessLevel) -> PHAuthorizationStatus
```

## Parameters

`accessLevel`

The access level for which to determine the app’s authorization status.

## Return Value

The app’s authorization status.

## Discussion

For more information about accessing the user’s Photos library, see <doc://com.apple.photokit/documentation/PhotoKit/delivering-an-enhanced-privacy-experience-in-your-photos-app>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)