---
title: "CFFileSecurityGetOwner(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cffilesecuritygetowner(_:_:)"
---

# CFFileSecurityGetOwner(_:_:)

Gets the owner ID associated with a CFFileSecurityRef object.

## Declaration

```swift
func CFFileSecurityGetOwner(_ fileSec: CFFileSecurity!, _ owner: UnsafeMutablePointer<uid_t>!) -> Bool
```

## Parameters

- `fileSec`: The CFFileSecurityRef object.
- `owner`: The address of an integer of type uid_t.

## Return Value

Return Value Returns true if the owner ID was stored in the address pointed to by owner, or false if there is no owner ID property associated with this CFFileSecurityRef object.

## See Also

### Functions

- [CFAllocatorAllocateBytes(_:_:_:)](corefoundation/cfallocatorallocatebytes(_:_:_:).md)
- [CFAllocatorAllocateTyped(_:_:_:_:)](corefoundation/cfallocatorallocatetyped(_:_:_:_:).md)
- [CFAllocatorReallocateBytes(_:_:_:_:)](corefoundation/cfallocatorreallocatebytes(_:_:_:_:).md)
- [CFAllocatorReallocateTyped(_:_:_:_:_:)](corefoundation/cfallocatorreallocatetyped(_:_:_:_:_:).md)
- [CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)](corefoundation/cfattributedstringgetbidilevelsandresolveddirections(_:_:_:_:_:).md)
- [CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)](corefoundation/cfbundlecopylocalizedstringforlocalizations(_:_:_:_:_:).md)
- [CFBundleIsArchitectureLoadable(_:)](corefoundation/cfbundleisarchitectureloadable(_:).md)
- [CFBundleIsExecutableLoadable(_:)](corefoundation/cfbundleisexecutableloadable(_:).md)
- [CFBundleIsExecutableLoadableForURL(_:)](corefoundation/cfbundleisexecutableloadableforurl(_:).md)
- [CFCopyHomeDirectoryURL()](corefoundation/cfcopyhomedirectoryurl().md)
- [CFDateFormatterCreateISO8601Formatter(_:_:)](corefoundation/cfdateformattercreateiso8601formatter(_:_:).md)
- [CFFileSecurityClearProperties(_:_:)](corefoundation/cffilesecurityclearproperties(_:_:).md)
- [CFFileSecurityCopyAccessControlList(_:_:)](corefoundation/cffilesecuritycopyaccesscontrollist(_:_:).md)
- [CFFileSecurityCopyGroupUUID(_:_:)](corefoundation/cffilesecuritycopygroupuuid(_:_:).md)
- [CFFileSecurityCopyOwnerUUID(_:_:)](corefoundation/cffilesecuritycopyowneruuid(_:_:).md)
