AddUser(String, String, String, String) Method
The AddUser method of the SPRole class adds the user specified by user name, e-mail address, display name, and notes to the site group.
Parameters
loginName A string that contains the user name (DOMAIN\User_Alias).
email A string that contains the e-mail address.
name A string that contains the display name of the user.
notes A string that contains notes for the user.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security