<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSContext"
  },
  "title" : "FSContext"
}
-->

# FSContext

A context object that provides information about the initiator of a file system operation.

```
class FSContext
```

## Overview

This object contains the user ID and group ID of the process that initiated the file system operation, allowing file systems to make authorization decisions based on the caller’s identity.
Use this context in handler methods that provide the context as a parameter.

## Topics

### Accessing context properties

[`var realUserID: Int`](/documentation/FSKit/FSContext/realUserID)

The caller’s real user ID.

[`var effectiveUserID: Int`](/documentation/FSKit/FSContext/effectiveUserID)

The caller’s effective user ID.

[`var realGroupID: Int`](/documentation/FSKit/FSContext/realGroupID)

The caller’s real group ID.

[`var effectiveGroupID: Int`](/documentation/FSKit/FSContext/effectiveGroupID)

The caller’s effective group ID.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

---

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)