---
title: "SecAccessCopyACLList(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/secaccesscopyacllist(_:_:)"
---

# SecAccessCopyACLList(_:_:)

Retrieves all the ACL entries of a given access instance.

## Declaration

```swift
func SecAccessCopyACLList(_ accessRef: SecAccess, _ aclList: UnsafeMutablePointer<CFArray?>) -> OSStatus
```

## Parameters

- `accessRef`: The access instance from which to retrieve the information.
- `aclList`: A pointer the method uses to return an array of doc://com.apple.security/documentation/Security/SecACL instances. In Objective-C, call the doc://com.apple.documentation/documentation/CoreFoundation/CFRelease function to release the array when you are finished using it.

## Return Value

Return Value A result code. See Security Framework Result Codes.

## Discussion

Discussion An access instance can have any number of ACL entries for specific operations or sets of operations. Use this method to get an array of all the ACL entries of a particular access instance. To retrieve entries corresponding to specific operations, use the SecAccessCopyMatchingACLList(_:_:) method instead.
