<!--
{
  "availability" : [
    "macOS: 10.14.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/AuthorizationType/setAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWorkspaceAuthorizationType@NSWorkspaceAuthorizationTypeSetAttributes"
  },
  "title" : "NSWorkspace.AuthorizationType.setAttributes"
}
-->

# NSWorkspace.AuthorizationType.setAttributes

Authorization for the app to change specific file attributes.

```
case setAttributes
```

## Discussion

Signifies that the user has granted authorization for <doc://com.apple.documentation/documentation/Foundation/FileManager/setAttributes(_:ofItemAtPath:)>.

Only these attributes can be modified:

- <doc://com.apple.documentation/documentation/Foundation/FileAttributeKey/ownerAccountID>
- <doc://com.apple.documentation/documentation/Foundation/FileAttributeKey/groupOwnerAccountID>
- <doc://com.apple.documentation/documentation/Foundation/FileAttributeKey/posixPermissions>

---

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)