I need to create a considerable number of form based authentication users. I have an Excel spread sheet containing user names and email addresses. I have no permission to execute code directly on farm servers. And I'm not authorized to execute any server side code. Therefore I cannot use SharePoint Server Model. I'm limited to SharePoint Client Object Model. So please.
How to create form based authentication users using client object model?
Is it even possible?
EDIT:
I tried this code, but obviously it doesn't work:
var context = new ClientContext("http://sp2013/sites/test");
var parameters = new UserCreationInformation() {
Email = "[email protected]",
LoginName = "jesuslpm",
Title = "Jesús López"
};
var user = context.Web.SiteUsers.Add(parameters);
context.ExecuteQuery();
It throws ServerException
The user does not exist or is not unique
I cannot find a way to specify forms authentication nor the password for the user.
I searched the web, but everything is using server side code.