IamUtil.updateUserPassword() Overload 1
DESCRIPTION
Update an IAM user’s password on device.
DECLARATION
static public func updateUserPassword(connection: Connection,
username: String,
password: String) throws
PARAMETERS
connection:- An established connection to the device
username:- Username for the user that should have password updated
password:- New password for the user
THROWS ERRORS
BLOCKED_BY_DEVICE_CONFIGURATION:- if the device configuration does not allow the current user to update the specified user's password (the
IAM:SetUserPasswordaction is not allowed for the requesting role for theIAM:Usernameuser) IAM_NOT_SUPPORTED:- if Nabto Edge IAM is not supported by the device
Overload 2
DESCRIPTION
Update an IAM user’s password on device.
Uses Swift concurrency and is therefore only available on iOS 13 and above.
DECLARATION
static public func updateUserPassword(connection: Connection,
username: String,
password: String) async throws
PARAMETERS
connection:- An established connection to the device
username:- Username for the user that should have password updated
password:- New password for the user
THROWS ERRORS
BLOCKED_BY_DEVICE_CONFIGURATION:- if the device configuration does not allow the current user to update the specified user's password (the
IAM:SetUserPasswordaction is not allowed for the requesting role for theIAM:Usernameuser) IAM_NOT_SUPPORTED:- if Nabto Edge IAM is not supported by the device