Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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();.