Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Creating new Employee with Access (User and Role)
Hello all,
I'm trying to create a new employee on netsuite through web service call. I'm setting the give access flag, the passwords, the EmployeeRoles, but still not getting the user created with the roles assigned. Is there something special I need to be doing?
NetSuiteWS.Employee n = new NetSuiteWS.Employee(); n.externalId = EmployeeID; n.firstName = FirstName; n.lastName = LastName; n.altName = EmployeeNumber; n.email = Email; n.hireDate = StartDatValue; n.phone = PhoneMain; NetSuiteWS.EmployeeAddressbook a = new NetSuiteWS.EmployeeAddressbook(); a.addr1 = Address1; a.addr2 = Address2; a.city = City; if (StateID.HasValue && StateID > 0) { var states = DefinitionsProvider.InstancGetStates(); a.state = states.First(p => p.ID == StateID.Value).Code; } a.zip = ZipCode; a.phone = PhoneMain; NetSuiteWS.EmployeeAddressbookList addressList = new NetSuiteWS.EmployeeAddressbookList(); NetSuiteWS.EmployeeAddressbook[] addresses = new NetSuiteWS.EmployeeAddressbook[1]; addresses[0] = a; addressList.addressbook = addresses; n.addressbookList = addressList; if (SeparationDatHasValue) { n.releaseDate = SeparationDatValue; } if (reportingToEmployeeID > 0) { n.supervisor = new 0