Manage Sudos
Create Sudos
do {
let sudoInput = SudoCreateInput(
title: "Mr.",
firstName: "John",
lastName: "Smith",
label: "Shopping",
notes: "Used for shopping.",
avatar: .fileUrl(avatarUrl)
)
let sudo = try await client.createSudo(input: sudoInput)
// Create successful
} catch {
// Handle error. An error may be thrown if the backend is unable
// to create the Sudo due to availability, security or entitlement issues or
// due to unrecoverable circumstances arising from programmatic error or
// configuration error. For example, if the keychain access entitlement
// is not set up correctly, the client is not signed in,
// or basic system resources are unavailable.
}val sudo = Sudo()
sudo.title = "Mr."
sudo.firstName = "John"
sudo.lastName = "Smith"
sudo.label = "Shopping"
sudo.notes = "Used for shopping."
sudo.avatar = avatarUri
CoroutineScope(Dispatchers.IO).launch {
try {
client.createSudo(sudo)
// Sudo created successfully.
} catch (e: SudoProfileException) {
// Handle error.
}
}List Sudos
Modify Sudos
Subscribe to Changes
Delete Sudos
Get Ownership Proof
Resetting Client State
Last updated