---
title: GetArguments
framework: security
role: symbol
role_heading: Instance Property
path: security/authorizationcallbacks/getarguments
---

# GetArguments

Reads the arguments for this authorization mechanism from the authorization policy database.

## Declaration

```occ
int (*)(struct __OpaqueAuthorizationEngine *, const struct AuthorizationValueVector **) GetArguments;
```

## Parameters

- `inEngine`: An opaque handle that is passed to your plug-in when the authorization engine calls your doc://com.apple.security/documentation/Security/AuthorizationPluginInterface/MechanismCreate function.
- `outArguments`: On input, allocate a pointer to an doc://com.apple.security/documentation/Security/AuthorizationValueVector structure. On output, the structure contains the number of arguments and a pointer to the data. Because your doc://com.apple.security/documentation/Security/AuthorizationValueVector structure does not own the data, you must not deallocate the structure or the data pointed to by the structure.

## Return Value

Return Value A result code. Possible results are errAuthorizationSuccess (no error) and errAuthorizationInternal (Security Server internal error).

## Discussion

Discussion The authorization policy database might contain arguments for each authentication mechanism. You can use this function to retrieve these arguments. The authorization engine sends you the entry point to the GetArguments function in an AuthorizationCallbacks structure when you call the AuthorizationPluginCreate function.
