Adding first time users...

Dec 8, 2008 at 8:00 PM

The following change to EditUM.cs allows security managers the ability to add users that have not previously visited or otherwise been granted access to the site.

            // EnsureUser checks whether the specified login name belogs to a valid user of the Web site, and if the login name does not already exist, adds it to the web site.
            // New Line:
             SPUser user = web.EnsureUser(userLogin); 

            // Origional Line:
            // SPUser user = web.SiteUsers[userLogin];