---
title: "AuthorizationRightGet(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/authorizationrightget(_:_:)"
---

# AuthorizationRightGet(_:_:)

Retrieves a right definition as a dictionary.

## Declaration

```swift
func AuthorizationRightGet(_ rightName: UnsafePointer<CChar>, _ rightDefinition: UnsafeMutablePointer<CFDictionary?>?) -> OSStatus
```

## Parameters

- `rightName`: An ASCII character string representing the right name. Wildcard right names are valid.
- `rightDefinition`: A reference to a dictionary. On return, this points to a dictionary of keys that define the right. Passing nil checks if the right is defined. You should release the memory used by the returned dictionary.

## Return Value

Return Value A result code. See Authorization Services Result Codes.

## Discussion

Discussion You do not need an authorization reference to use this function because the policy database is world readable.
