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

# AuthorizationCopyInfo(_:_:_:)

Retrieves supporting data such as the user name and other information gathered during evaluation of authorization.

```
func AuthorizationCopyInfo(_ authorization: AuthorizationRef, _ tag: AuthorizationString?, _ info: UnsafeMutablePointer<UnsafeMutablePointer<AuthorizationItemSet>?>) -> OSStatus
```

## Parameters

`authorization`

An authorization reference referring to the authorization session.

`tag`

An [`AuthorizationString`](/documentation/Security/AuthorizationString) specifying the type of data the Security Server should return. Pass `nil` to retrieve all available information.

`info`

A pointer to an authorization set the Security Server creates. On return, this set contains side-band authorization data. When this set is no longer needed, free the memory associated with it by calling the function [`AuthorizationFreeItemSet(_:)`](/documentation/Security/AuthorizationFreeItemSet(_:)).

## Return Value

A result code. See [Authorization Services Result Codes](/documentation/Security/authorization-services-result-codes).

## Discussion

An authorization plug-in can store the results of an authentication operation by calling the [`SetContextValue`](/documentation/Security/AuthorizationCallbacks/SetContextValue) function. You can use the [`AuthorizationCopyInfo(_:_:_:)`](/documentation/Security/AuthorizationCopyInfo(_:_:_:)) function to retrieve this information.

---

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)