After this article
You will be able to connect NetSuite to Lumos to sync employees, roles, and permissions, manage role assignments, and create, deactivate, or delete users during offboarding.Capabilities
Provisioning behavior:
- Create: Lumos creates the employee over the REST API with the email, first and last name, and the roles from the request. An email and at least one name (first or last) are required, and Lumos expects at least one role. Password, numeric subsidiary ID, custom attributes, and user status (
ACTIVE/SUSPENDED, case-sensitive) are optional. When roles are included, NetSuite grants login access and emails the user to set a password. If the request includes a password, Lumos sets it directly instead. - Create is idempotent: if an employee with the same email already exists, Lumos links the existing record and makes no changes to it.
- Assign a role: an additive update on the employee record. Assigning a role to an employee without login access also grants access.
- Remove a role: Lumos reads the employee’s current roles and writes the remaining set. Removing the last role also revokes access (
giveAccess: false), since NetSuite users need at least one role to retain access. Removing a role the employee doesn’t hold returns an error. - Update: Lumos updates the employee record with only the fields in the request. Omitted fields are left unchanged.
- Reactivate: there is no standalone activate action. The custom Create or activate account action covers this. It creates the employee if the account is absent, and otherwise restores login access and replaces their roles with the ones in the request. Roles held before deactivation are not restored.
Required plan and roles
- NetSuite features: enable SuiteTalk web services (REST and SOAP) and Token-Based Authentication (TBA) on the Setup > Company > Enable Features page, under the SuiteCloud tab. The integration authenticates with credentials (Consumer Key, Consumer Secret, Token ID, and Token Secret) taken from an integration record in the Enabled state.
-
Token role permissions: create a role for the integration, and select All under Accessible Subsidiaries. Under the Permissions subtab, grant:
- To authenticate, run SuiteQL queries, and manage roles:
- Setup > Login using Access Tokens: Full
- Setup > REST Web Services: Full
- Setup > User Access Tokens: Full
- Setup > Bulk Manage Roles: Full
- Reports > SuiteAnalytics Workbook: Edit
- To read and manage employees and their roles:
- Lists > Employees: Edit
- Lists > Employee Record: Edit
- Optional, for last-login data:
- Setup > View Login Audit Trail: View
- To authenticate, run SuiteQL queries, and manage roles:
- Permission scoping: all write operations run over NetSuite’s SuiteTalk REST web services, authorized by the access token and the role permissions above. If you don’t want Lumos to change anything in NetSuite, use NetSuite Read-Only instead.
Read-only access vs provisioning
Is read-only possible? Yes, but not through this connector. NetSuite Provisioning is built to create, update, deactivate, and delete NetSuite users, and its token role needs Employee Record and Employees set to Edit plus Bulk Manage Roles set to Full to do that. If you don’t want Lumos to change anything in NetSuite, connect the separate NetSuite Read-Only card instead. What read-only requires. The same OAuth 1.0a TBA credential type (Consumer Key, Consumer Secret, Token ID, Token Secret, Account ID), generated against NetSuite Read-Only’s narrower role. That role asks for View rather than Edit on the Employee Record and Employees permissions and View rather than Full on Bulk Manage Roles. Follow the NetSuite Read-Only article for that setup. What full provisioning requires. The TBA credential values and the role permissions listed below, including Employee Record and Employees set to Edit and Bulk Manage Roles set to Full, plus SuiteTalk web services and Token-Based Authentication enabled in NetSuite. Follow the steps below. Watch out for. Provisioning and read-only are separate integration cards, each with its own access token bound to a different NetSuite role. Switching modes means creating a new connection rather than changing a setting on this one. Granting this Provisioning card a narrower, View-only role instead of using the Read-Only card’s own role breaks provisioning rather than making it safely read-only. The connector still expects Edit and Full permissions to be present.Instructions
Phase 1: Prepare NetSuite- Log in to NetSuite with an Admin account. Note your subdomain from the account URL (for
https://1234567.app.netsuite.com/the subdomain is1234567). - Enable SuiteTalk web services (REST and SOAP) and Token-Based Authentication on the Setup > Company > Enable Features page, then open the SuiteCloud tab.
- Create a role for the integration at Setup > Users/Roles > Manage Roles > New. Name the role, select All under Accessible Subsidiaries, add these permissions under the Permissions subtab, then click Save:
- Setup > Login using Access Tokens: Full
- Setup > REST Web Services: Full
- Setup > User Access Tokens: Full
- Setup > Bulk Manage Roles: Full
- Reports > SuiteAnalytics Workbook: Edit
- Lists > Employees: Edit (or Full, to allow deletes)
- Lists > Employee Record: Edit (or Full, to allow deletes)
- Setup > View Login Audit Trail: View (optional, for last-login data)
- Attach the role to a user. Go to Lists > Employees > Employees, click edit next to the user, open the Access > Roles subtab, add the role you just created, and click Save.
- Create an integration record at Setup > Integration > Manage Integrations > New. Choose any name and uncheck the TBA: Authorization Flow and Authorization Code Grant boxes, then click Save. Copy the Client ID (Consumer Key) and Client Secret (Consumer Secret) shown on the page. You can’t recover them after navigating away.
- Create a token-based authentication token at Setup > Users/Roles > Access Token > New. For Application Name, User, and Role, select the integration from step 5, the user you attached the role to in step 4, and the role you created in step 3. The Token Name fills in automatically. Click Save, then copy the Token ID and Token Secret. You can’t recover them after navigating away. NetSuite access tokens don’t expire, but they can be manually revoked.
- Open the NetSuite Provisioning integration card in Lumos.
- Account ID: the subdomain part of your NetSuite URL. For
https://1234567.app.netsuite.com/the Account ID is1234567. For a sandbox it may look like1234567-sb1. Enter the full value and use a dash (-) as the separator, not an underscore. - Enter the Consumer Key (Client ID), Consumer Secret (Client Secret), Token ID, and Token Secret.
- Optional setting: Mark users inactive when deactivating (off by default). When on, deactivating a user in Lumos removes their login access, removes all of their roles, and marks the employee record inactive. When off, only login access is removed, and the employee record keeps its roles and stays active.
- Click Connect.
API Endpoints Used
Troubleshooting
Authentication failures (“Invalid login credentials” / “Token authentication failed”). Verify Token-Based Authentication is enabled in NetSuite features. Confirm all four credentials are correct with no extra spaces. Check that the integration record is Enabled, the access token hasn’t been deleted or revoked, the token’s user account is still active, and the user’s role has the necessary permissions. Users not syncing. Verify the token’s role has the Employees and Employee Record permissions, users have email addresses, and users aren’t inactive. This connector intentionally includes users with Give Access disabled (they still have a NetSuite account worth tracking). Roles not appearing. Verify read permissions for Role records and that roles are active and not restricted. A 400 “Record role was not found” error means the connecting role lacks the Bulk Manage Roles permission (or the wrong token is in use). Permissions not syncing. Lumos queries therolepermissions table, so a permission and level combination appears only when at least one role holds it. Verify the missing permission level is assigned to at least one role, then trigger a new sync.
Activity data not syncing. Verify the role has Setup > View Login Audit Trail and that Login Audit is enabled in NetSuite. Only login events within the 90-day lookback are returned. If the LoginAudit record type isn’t enabled or accessible for your account, the connector treats last activity as unavailable rather than failing.
“Invalid Account ID”. Recheck the Account ID against your NetSuite URL. If a full value with a suffix fails, try the numeric account ID alone. For sandboxes, verify you’re using the correct sandbox account ID with a dash (not underscore) separator.
API rate limit exceeded. Reduce the concurrency limit, review other integrations consuming your API quota, or contact NetSuite to increase limits.