---
title: FSContext
framework: fskit
role: symbol
role_heading: Class
path: fskit/fscontext
---

# FSContext

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

## Declaration

```swift
class FSContext
```

## Overview

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

- [realUserID](fskit/fscontext/realuserid.md)
- [effectiveUserID](fskit/fscontext/effectiveuserid.md)
- [realGroupID](fskit/fscontext/realgroupid.md)
- [effectiveGroupID](fskit/fscontext/effectivegroupid.md)

## 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

### Opening and closing items

- [open(_:modes:cacheMode:context:replyHandler:)](fskit/fsvolume/datacachehandler/open(_:modes:cachemode:context:replyhandler:).md)
- [FSOpenItemResult](fskit/fsopenitemresult.md)
- [close(_:context:replyHandler:)](fskit/fsvolume/datacachehandler/close(_:context:replyhandler:).md)
- [FSVolume.DataCacheMode](fskit/fsvolume/datacachemode.md)
