Hey, We tried to create a Role for Webservice Only...
# suitescript
f
Hey, We tried to create a Role for Webservice Only; created a new Employee that only has that role; Created Access Token for that user but when we try to use that access token to call a restlet that we have developed we get a 403 Invalid login attempt. Is there any permission missing that we need to assign to the role to make it work?
netsuite 1
n
My understanding, open to correction, is that the Web Services Only check box doesn't work. It actually messes things up. I wish I had docs or source to back this up other than self exp.
f
but it seems like even if we disable that checkbox we still get that error message? Or do we need to regenerate access tokens AFTER we removed the checkbox on the role?
b
a restlet is not the suitetalk web service
f
I know but the description of that checkbox says it is for ANY API access other then UI (therefore restlet should be allowed by it too)
that feature is under the soap web services topic
very likely that it specifically applies to soap
f
Yeah we tried it with and without that checkbox. I am just wondering that when creating access tokens if it copies that information or not (like do I need to recreate the access token or not)
b
i don't think that information matters
access token is for role/email/password
you can give or remove permissions without regenerating tokens
f
Yeah because in that case we still get the same error message regardless if webservice only is enabled or not
b
might want to use a tool like postman to do the request
👍 1
n
Postman is great for testing.
f
well I know that the authentication itself is working
when I switch to a admin token for example everything is working fine
b
although i dont think it would give a 403 status, you might want to make sure the deployment audience and status are correct
👍 1
other issues might be the integration record disallows token authentication
or the token ids are wrong
f
they are 100% correct
and nothing in the audit logs which is weird