Hi
I am trying to create a Plugin for the Videoclient to allow a Basic User to change his Password.
Im Starting with the “AddUserWithConfigApi” Sample and trying to modify it. Unfortunately without success.
I started with the “CreateUser” Method and did modify it like this:
private string ChangePasswordBasicUser(IConfigurationService configurationApiClient, string password)
{
string userFolderPath = string.Format("/{0}", ItemTypes.BasicUserFolder);
var userFolder = configurationApiClient.GetItem(userFolderPath);
var changePasswordBasicUserInvokeInfo = configurationApiClient.InvokeMethod(userFolder, "ChangePasswordBasicUser");
// Changing the properties of the invokeInfo object to the provided parameters
var passwordProperty = changePasswordBasicUserInvokeInfo.Properties.Where(property => property.Key == "Password").FirstOrDefault();
passwordProperty.Value = password;
// Calling the AddBasicUser method on BasicUserFolder again with the prepared invokeInfo object
var changePasswordBasicUserInvokeResult = configurationApiClient.InvokeMethod(changePasswordBasicUserInvokeInfo, "ChangePasswordBasicUser");
return changePasswordBasicUserInvokeResult.Path;
}
I get this error:
The path is not a valid/recognized path.
Details:
Invalid path. Path: /BasicUserFolder
Parametername: item
Is there any Sample on how to make this work?
