Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Roles returned in login operation
OK... I think it's better for me to just say what happened than try to formulate a question. I'm hopeless now...
I am implementing a 'switch role' operation in our website that is integrated with netsuite. Authentication is done through web services.
My user has 4 roles which all have web services permission as full: Employee Center, Developer Center (custom), Web Services Customer Center, Web Services Developer Center (custom).
My default one is Developer Center and login works fine. When I perform th nsservice.login() operation, only 3 roles are returned; all except Web Services Developer Center (custom one).
Role change is implemented by a logout and subsequent login operation with passport object populated with roleId recordref with internalId = roleNumber.toString();.