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 design and build custom software for businesses running on NetSuite — from mobile apps and Web portals to Web APIs and integrations.

I’ve created several widely used open-source solutions for the NetSuite community, including the SuiteQL Query Tool and SuiteAPI, which help developers and businesses get more out of their systems.

I’m also the founder of SuiteStep, a NetSuite development studio focused on pushing the boundaries of what’s possible on the platform. Through SuiteStep, I deliver custom software and AI-driven solutions that make NetSuite more powerful, accessible, and future-ready.

Copyright © 2025 Tim Dietrich.