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

# SecAccessGetOwnerAndACL

Retrieves the owner and the access control list of a given access object.

```
OSStatus SecAccessGetOwnerAndACL(SecAccessRef accessRef, CSSM_ACL_OWNER_PROTOTYPE_PTR*owner, uint32 *aclCount, CSSM_ACL_ENTRY_INFO_PTR*acls);
```

## Parameters

`accessRef`

An access object from which to retrieve the owner and access control list.

`owner`

On return, a pointer to a CSSM access control list owner.

`aclCount`

On return, a pointer to an unsigned 32-bit integer representing the number of items in the access control list.

`acls`

On return, a pointer to the CSSM access control list.

## Return Value

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

## Discussion

> Important:
> This function is deprecated.
> Use ``doc://com.apple.security/documentation/Security/SecAccessCopyOwnerAndACL(_:_:_:_:_:)`` instead.

This function returns CSSM structures for use with CSSM API functions.

### Special Considerations

This function is deprecated in macOS 10.7 and later. Use [`SecAccessCopyOwnerAndACL(_:_:_:_:_:)`](/documentation/Security/SecAccessCopyOwnerAndACL(_:_:_:_:_:)) instead.

---

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)