---
title: "authorizationStatus(for:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phphotolibrary/authorizationstatus(for:)"
---

# authorizationStatus(for:)

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

## Declaration

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

## Parameters

- `accessLevel`: The access level for which to determine the app’s authorization status.

## Mentioned in

Delivering an Enhanced Privacy Experience in Your Photos App

## Return Value

Return Value The app’s authorization status.

## Discussion

Discussion For more information about accessing the user’s Photos library, see Delivering an Enhanced Privacy Experience in Your Photos App.

## See Also

### Verifying Authorization

- [requestAuthorization(for:handler:)](photos/phphotolibrary/requestauthorization(for:handler:).md)
- [PHAccessLevel](photos/phaccesslevel.md)
- [PHAuthorizationStatus](photos/phauthorizationstatus.md)
- [authorizationStatus()](photos/phphotolibrary/authorizationstatus().md)
- [requestAuthorization(_:)](photos/phphotolibrary/requestauthorization(_:).md)
