<!--
{
  "availability" : [
    "iOS: 9.3.0 - 18.0.0",
    "iPadOS: 9.3.0 - 18.0.0",
    "macCatalyst: 13.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 9.3.0 - 18.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKCloudServiceController/requestAuthorization(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKCloudServiceController(cm)requestAuthorization:"
  },
  "title" : "requestAuthorization(_:)"
}
-->

# requestAuthorization(_:)

Asks the customer for permission to access the Music library on the device.

```
class func requestAuthorization(_ completionHandler: @escaping @Sendable (SKCloudServiceAuthorizationStatus) -> Void)
```

## Parameters

`completionHandler`

A block that is called when authorization is granted or denied by the user.

## Discussion

You can use this method to ask the user for permission to play Apple Music tracks or to add tracks to the music library.

---

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)