r/Netsuite • • 2d ago

How are you preventing users from accessing restricted data with Claude or other MCP connections?

We're setting up Claude (in read-only) for our users now, but we're running into issues with permissions and data security.

For example, we want our customer service, purchasing, and marketing departments to be able to run reports and analysis based on sales order records. However, when we give their MCP role access to sales order records, a user can potentially export the entire customer list with addresses, phones, and emails, which is what we don't want to happen.

12 Upvotes

25 comments sorted by

5

u/PercMaint 2d ago

You can set up a separate role for the claude MCP connector with the permissions you want it to have. Make sure the users normal role does not have permissions for the MCP connector. When they connect claude to netsuite it will ask what role they want to use, and the only role that would work with the mcp connector is the role you created.

1

u/Top_Pace_6904 2d ago

Thank you for your comment. Yes, we do use separate connector roles. The problem is if you give an MCP role view access to sales orders, a user could just type in "Give me a full list of customers, phones, email addresses from every order" to Claude and export the entire customer list.

2

u/PercMaint 2d ago

Correct. That will be a limitation of Netsuite. If you can read sales order information, then so will Claude. No way to restrict this that I know of. NetSuite does not do that level of granular permissions.

1

u/Laurendon-Mimoune 1d ago

agree, keeping the integration completely separate from their day to day role saves a lot of headaches

4

u/Southern-Message-882 2d ago

tbh giving direct record-level access to sales orders will almost always expose the customer entity data attached to them. A safer route is revoking raw table permissions on that role and only exposing specific, sanitized saved searches that exclude the contact fields.

2

u/Top_Pace_6904 2d ago

We tried this route earlier this week. For example, we created a sanitized search for sales orders with run unrestricted checked and allowed it for these roles. The problem is, with tens of millions of sales transaction lines in the decade+ we've been on Netsuite, the search would time-out.

The connector can't use the "available filters" on the saved search or URL parameters either, based on what I've tried so far.

"The search has no criteria, so it covers every sales transaction line since 2013, about 2.7 million lines in 2025 alone. If the AI runs the search directly with the built-in "run saved search" tool, it tries to load all of it and times out."

"URL parameters filter the search when a person opens that link in NetSuite. The AI connector can't use them. It doesn't load NetSuite pages; it calls the connector's built-in tools, and the saved-search tool only accepts a search ID and a row range. So through the connector, the search still runs at full size every time, which is the slow part you're seeing."

1

u/PercMaint 2d ago

If you are timing out on searches, add more criteria filter to narrow your results. e.g. just specifying that the date is after 3 years ago, your search will have a much better chance of success as well as respond much faster.

1

u/Top_Pace_6904 2d ago

This path is essentially what I'm leaning towards, but I'm still hoping there's a better way to do it. Basically making a sanitized saved search for each month's sales order transactions and giving the MCP roles permission to access those searches while removing the sales order permission from the MCP roles.

1

u/PercMaint 2d ago

Look in to analytics datasets. I prefer those over saved searches.

1

u/Top_Pace_6904 2d ago

The searches will have "run unrestricted" checked, so a MCP role that's restricted from sales orders will still be able to run them and get results.

I'm not sure datasets will work for this as they use the user's role's permissions. But do you know a way around this?

1

u/PercMaint 2d ago

Datasets do use the users role's permissions, but you could filter the dataset, and MCP can only use the data within the dataset. So for instance you could have just customer name, sales order items, totals, etc, but no customer contact info.

1

u/adultdaycare81 2d ago

MCP respects permissions. We have a couple roles for it

1

u/Top_Pace_6904 2d ago

Thank you for your comment. We are using separate MCP roles with permissions setup. The issue we're having is that adding a permission in read-only still gives the user data extraction capabilities. For example, a permission allowing sales orders transaction in view then allows the user to extract the full customer list with all contact data / PII.

1

u/adultdaycare81 2d ago

That’s public for us. Idk how we would hide it

2

u/rowlje 2d ago

The connector shouldn’t be able to do anything anyone logged in as that role can’t do. Are you sure your access for the MCP connector is correct

3

u/PercMaint 2d ago

We choose to have MCP as it's own role that is much more restricted to view only in certain areas. If they use the standard user role you would have to be ok with claude creating a full sales order for example, whereas for our mcp role it can view them, but not create them.

2

u/Ok-Avocado-1425 2d ago

One of those considerations is Caludes access and the other is not trusting your team.

2

u/Nick_AxeusConsulting Mod 1d ago

Yes trust is an issue here. You should have NDAs signed and don't hire ppl you don't trust. Those steps have nothing to do with NS. Those are owner paranoia / control freak issues. NS assumes you hire trust worthy ppl. There's no amount of security that can block a determined bad actor. So that also means don't so dumb shit that's going to piss off your employees such that they want to seek revenge and steal all your customers. Pay them well and don't be an asshole boss. That's just general good business practices. You gotta think thru the risk of being an asshole that you didn't think about. It's much smarter to just keep them happy and pay them well so they don't want to leave and fuck you over and then they work hard for YOUR business instead of your comeptitor which is good for your bottom line.

2

u/agentUi 1d ago

giving an mcp role direct read access to the sales order and customer records is always going to expose pii fields like emails and phone numbers because netsuite permissions are record level rather than column level. instead of exposing raw sales order tables to claude, restrict the integration role exclusively to pre built saved searches or locked down restlet endpoints that only return aggregated sku, date, and territory columns with customer contact fields stripped out completely.

1

u/No_Refrigerator_8636 1d ago

We cloned roles and gave them Claude access. So Claude can only do what the user was allowed to do anyhow.

1

u/theabrasiveisiah 20h ago

Good way to go about it, did the same

1

u/Digitalmeesh Consultant 1d ago

Could maybe provide a custom tool?

1

u/rico_andrade 1d ago

Create custom MCPs with Celigo

1

u/Rahul-SuiteCloudDev 16h ago

What if we provide instruction to the AI agent to NEVER provide contact details for entity records?

1

u/stony-builds 3h ago

[cracks knuckles]

Our app, Kipper was born to do this. Best of all, we can do this for *non-netsuite* users, at a fraction of the price of a regular NetSuite license. So all of your sales, support, operations, etc can access record level information with their AI tools. We are strictly read-only so there's no risk of writing back to NetSuite.

We handle user provisioning and user security, with fine grained permissions that can restrict a user to a subsidiary, or a segment, or certain objects, or whatever you want. And your users can use their AI tools or chat on Slack/Teams/SMS. Shoot me a DM and I'll be glad to demo and set you up on an extended free trial. Or see our live demo, https://kipper.com/netsuite-claude-connector/