Is it possible to setup accounts in the IDE for SD...
# sdf
d
Is it possible to setup accounts in the IDE for SDF without username/password by just using the tokens/account number?
a
First time you have to login using your credentials. Then you can issue or save a token in IDE
s
What I do is login to the UI and issue tokens there. Then use sdfcli
savetoken
and paste.
d
Can you give me more info on that @stalbert? Our company doesn't have access to the passwords.
s
well you'd typically need a password to login to the netsuite UI initially.
d
Yes, but we're not typical 😉
s
my point was basically you don't have to use sdfcli
issuetoken
or equivalent in the IDE if you have login access the main NetSuite UI (because you can issue token once there and then use it henceforth)
the security model of tokens would be rubbish if you could obtain them without other authentication 🙂
d
So I need to figure out how to use the CLI
s
Do you currently have a working token?
d
Yes. I can log into the UI and issue tokens. I just don't have access to see/use the password
s
I won't ask how that's even possible, but if you can issue a token, you need only do so and copy/paste the token id and secret to the cli command
something like
Copy code
sdfcli savetoken -tokenid 123456 -tokensecret 7890123 -other -standard -options
d
OK. That's good. How does the token know the account it's attached to?
s
you have to supply those as the other options.
the full command looks something like this
sdfcli savetoken -account <acctnumber> -email <mailto:joe.schmoe@example.com|joe.schmoe@example.com> -role 3 -url <http://system.netsuite.com|system.netsuite.com> -tokenid <tokenid> -tokensecret <tokensecret>
d
Perfect. Thank you. I found the CLI docs. That should help.