Extending NetSuite AI: Providing User Details to Claude

Published on August 20, 2025.

Last week, I wrote about how the new SuiteScript 2.1 Custom Tool script type enables developers to extend the NetSuite AI Connector Service with SuiteScript. I also shared my first tool — the File Cabinet Custom Tool — which lets Claude interact directly with the File Cabinet.

Since then, I've been working on another project using the AI Connector, and along the way I built a second tool that has proven handy: the Current User Tool.

This tool is simple but useful — it provides Claude (or any AI client using the AI Connector) with details about the current NetSuite user. Specifically, it returns the user's:
• Internal ID
• Name
• Email address
• Location ID
• Department ID
• Subsidiary ID

These values can be especially helpful when another custom tool requires user-specific context, like the internal user ID.

Here's a screen shot showing the tool in action:

Click the image to view a larger version.

If you'd like to try it, you can download the Current User Tool here: CurrentUserTool-20250817-01.zip

The zip file includes:
• The script file
• The tool schema
• The Custom Tool SDF object

Note: You'll need to be familiar with the SuiteCloud Development Framework (SDF), since that's currently the only way to deploy Custom Tools. If you're not a developer, you'll want someone with SDF experience to help.

I hope you find this tool to be helpful.

About Me

Hello, I'm Tim Dietrich. I develop custom software for businesses that are running on NetSuite, including mobile apps, Web portals, Web APIs, and more.

I'm the developer of several popular NetSuite open source solutions, including the SuiteQL Query Tool, SuiteAPI, and more.

I founded SuiteStep, a NetSuite development studio, to provide custom software and AI solutions - and continue pushing the boundaries of what's possible on the NetSuite platform.

Copyright © 2025 Tim Dietrich.