<!--
{
  "availability" : [
    "macOS: 10.7.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecAccessCopyOwnerAndACL(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecAccessCopyOwnerAndACL"
  },
  "title" : "SecAccessCopyOwnerAndACL(_:_:_:_:_:)"
}
-->

# SecAccessCopyOwnerAndACL(_:_:_:_:_:)

Retrieves the owner and the ACL entries of a given access instance.

```
func SecAccessCopyOwnerAndACL(_ accessRef: SecAccess, _ userId: UnsafeMutablePointer<uid_t>?, _ groupId: UnsafeMutablePointer<gid_t>?, _ ownerType: UnsafeMutablePointer<SecAccessOwnerType>?, _ aclList: UnsafeMutablePointer<CFArray?>?) -> OSStatus
```

## Parameters

`accessRef`

An access instance from which to retrieve the owner and ACL entries.

`userId`

On return, the user ID that owns the access instance.

`groupId`

On return, the group ID that owns the access instance.

`ownerType`

On return, flags that indicate whether the specified user ID or group ID owns the resulting ACL entries. See [`SecAccessOwnerType`](/documentation/Security/SecAccessOwnerType) for details.

`aclList`

On return, an array of [`SecACL`](/documentation/Security/SecACL) instances associated with the access instance.

## Return Value

A result code. See [Security Framework Result Codes](/documentation/Security/security-framework-result-codes).

---

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)