I am trying to create new tridion user using Anguilla framework. I tried, but the user is not getting saved. When I'm saving the user, it's saying "cannot save item; paramer s is null". Below is my code :
var newuser = $models.createNewItem($const.ItemType.USER); newuser.setTitle("Test Title"); newuser.setDescription("Test description"); newuser.Privileges(1); newuser.save(true);
I am getting an error saying "cannot save item; paramer s is null". But I'm struggling to find out which parameter I missed out. Can someone please guide me how to do that? If it is because I'm not setting the Membership of the user, can someone tell me how to set the membership of a user?