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

# SecAccessCreateFromOwnerAndACL

Creates a new access object using the owner and access control list you provide.

```
OSStatus SecAccessCreateFromOwnerAndACL(const CSSM_ACL_OWNER_PROTOTYPE *owner, uint32 aclCount, const CSSM_ACL_ENTRY_INFO *acls, SecAccessRef*accessRef);
```

## Parameters

`owner`

A pointer to a CSSM access control list owner.

`aclCount`

An unsigned 32-bit integer representing the number of items in the access control list.

`acls`

A pointer to the CSSM access control list.

`accessRef`

On return, points to the new access object. In Objective-C, call the <doc://com.apple.documentation/documentation/CoreFoundation/CFRelease> function to release this object when you are finished using it.

## 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/SecAccessCreateWithOwnerAndACL(_:_:_:_:_:)`` instead.

This function creates an access object from CSSM structures. You can use this function to create an access object for use with other Certificate, Key, and Trust API functions if you want to use CSSM to create the access control list. CSSM allows more complex access controls than you can construct with the Certificate, Key, and Trust API. For more information about the CSSM API, see *Common Security: CDSA and CSSM, version 2 (with corrigenda)* from The Open Group (<http://www.opengroup.org/security/cdsa.htm>).

### Special Considerations

This function is deprecated in macOS 10.7 and later; use [`SecAccessCreateWithOwnerAndACL(_:_:_:_:_:)`](/documentation/Security/SecAccessCreateWithOwnerAndACL(_:_:_:_:_:)) 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)