I am trying to add a new user in SPWeb with "limited access" as roleDefinition. But it shows error. But if i give "full control", read, design i'm able to add the user.
This is my code web.SiteUsers.Add(loginName, string.Empty, displayName, string.Empty);
What is the solution