---
title: lockAccounts
framework: managedsettings
role: symbol
role_heading: Instance Property
path: managedsettings/accountsettings/lockaccounts-swift.property
---

# lockAccounts

A Boolean value that indicates whether to prevent the user from changing their account information.

## Declaration

```swift
var lockAccounts: Bool? { get set }
```

## Discussion

Discussion Your app can enable or disable changes to the user’s account settings. The default value is nil.

## See Also

### Constraining accounts

- [lockAccounts](managedsettings/accountsettings/lockaccounts-swift.type.property.md)
