---
title: "setString(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfauthorizationview/setstring(_:)"
---

# setString(_:)

Sets the requested-right string to use with the default authorization rights set.

## Declaration

```swift
func setString(_ authorizationString: AuthorizationString!)
```

## Parameters

- `authorizationString`: The string to be displayed.

## Discussion

Discussion This is a convenience method that creates an authorization rights set when you specify only the name of the requested right. The requested-right string is displayed in the Details pane of the user authentication dialog box. Either this method or the setAuthorizationRights(_:) method must be called before the view displays correctly.

## See Also

### Related Documentation

- [Authorization Services Programming Guide](apple-archive/documentation/Security/Conceptual/authorization_concepts/01introduction/introduction.html.md)
- [authorizationRights()](securityinterface/sfauthorizationview/authorizationrights().md)

### Setting up the authorization view

- [setAuthorizationRights(_:)](securityinterface/sfauthorizationview/setauthorizationrights(_:).md)
- [setAutoupdate(_:)](securityinterface/sfauthorizationview/setautoupdate(_:).md)
- [setAutoupdate(_:interval:)](securityinterface/sfauthorizationview/setautoupdate(_:interval:).md)
- [setFlags(_:)](securityinterface/sfauthorizationview/setflags(_:).md)
- [setEnabled(_:)](securityinterface/sfauthorizationview/setenabled(_:).md)
