---
title: NSWorkspace.Authorization
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsworkspace/authorization
---

# NSWorkspace.Authorization

The authorization granted to the app by the user.

## Declaration

```swift
class Authorization
```

## Overview

Overview To enable your app to prompt the user for these file permissions, you must have a Privileged File Operation entitlement. If you have an app on the Mac App Store or plan to submit your app for review, you can request this entitlement.

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Performing Privileged Operations

- [requestAuthorization(to:completionHandler:)](appkit/nsworkspace/requestauthorization(to:completionhandler:).md)
- [NSWorkspace.AuthorizationType](appkit/nsworkspace/authorizationtype.md)
