Discussions
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();.