Contents

userAccounts(options:)

Returns a list of registered user accounts for your app.

Declaration

func userAccounts(options: VSUserAccountManager.QueryOptions = []) async throws -> [VSUserAccount]

Parameters

  • options:

    An array of options you specify to customize the user account query.

Return Value

A list of registered user accounts for your app.

Discussion

By default, this fetches and returns the list of registered user accounts on the current device. Provide the query option allDevices to fetch the list of registered user accounts on all the devices the person has in their iCloud account.

See Also

Getting user accounts