<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFAuthorizationView/setAuthorizationRights(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFAuthorizationView(im)setAuthorizationRights:"
  },
  "title" : "setAuthorizationRights(_:)"
}
-->

# setAuthorizationRights(_:)

Sets the authorization rights for this view.

```
func setAuthorizationRights(_ authorizationRights: UnsafePointer<AuthorizationRights>!)
```

## Parameters

`authorizationRights`

An authorization rights structure specifying the authorization rights represented by the authorization view.

## Discussion

Either this method or the [`setString(_:)`](/documentation/SecurityInterface/SFAuthorizationView/setString(_:)) method must be called before the view displays correctly.

The authorization rights structures are defined in <doc://com.apple.documentation/documentation/Security/AuthorizationRights> in <doc://com.apple.documentation/documentation/Security/authorization-services>.

## See Also

[`func authorizationRights() -> UnsafeMutablePointer<AuthorizationRights>!`](/documentation/SecurityInterface/SFAuthorizationView/authorizationRights())

Returns the authorization rights for this view.



---

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)