Minimum access for using Claude: Plex queries, scripts and email

Updated Nov 30, 2026
AI

Minimum access for querying Plex from Claude

What to set up so a person can ask Claude questions answered from your Plex data through ODBC, and nothing more.

Claude reaches DataMagik through the DataMagik connector (see Connect Claude). Every request runs as the person who connected, with their own DataMagik roles, in the company they are working in. Claude can do only what that person could do in DataMagik.

The checklist

#WhatWho sets it
1Your DataMagik license includes MCP access (connecting Claude and other AI tools).DataMagik. Ask your DataMagik contact if Claude reports that MCP is not enabled for your company.
2Your company has an active ODBC credential for Plex, on the Credentials page.A user with the Builder or Security role.
3The person holds the DataMagik - Viewer role.A company administrator, in the Company User Manager.
4Optional: a SQL Access Role limits what the person can read. Required when your company is part of a group of Sites.A company administrator, on SQL Access Roles.
5The person connects Claude to DataMagik and signs in.The person. See Connect Claude.

Why DataMagik - Viewer

DataMagik - Viewer is the smallest role that can run SQL against Plex or run a Plex data source. With it, Claude can:

  • run a query you have saved in the SQL Editor, by name;
  • run a query Claude writes (a test run returns up to 100 rows);
  • list and read your saved queries;
  • run a read-only Plex data source (a Plex web service) that your Plex login is allowed to use.

It cannot create, change or delete saved queries, or see or change credentials. Those need DataMagik - Builder, which most people asking questions do not need.

Viewer does more than SQL. The same role also lets a person run your company's scripts, use the AI Assistant, and read workflows and integrations. A script can write to Plex, so review what your scripts do before you give Viewer to people who should only read. There is no narrower role for SQL alone.

Which credential Claude uses

A Viewer cannot list credentials, so Claude needs to know which ODBC credential to use. Choose one of these:

  • Saved queries (recommended). A Builder saves the queries people need in the SQL Editor, each with the ODBC credential chosen. People ask Claude to run the query by name, and the saved credential is used.
  • Your own questions. For queries Claude writes, tell people the ODBC credential's number. To find it, a Builder or administrator opens Credentials, clicks Who can use it on the ODBC credential, and reads the number in the address bar (…/credentials/123/rules). The person tells Claude once in the chat: "Use ODBC credential 123."

Limiting what a person can read

The ODBC login decides what Plex returns. To narrow it per person, use SQL Access Roles:

  1. Create a SQL Access Role with the databases the person may read, any tables to hide, and the PCNs they may see.
  2. Assign it to the person, or to a DataMagik role they hold.
  3. Turn on Plex access enforcement on the SQL Access Roles page.

Once enforcement is on, a person with no SQL Access Role can read nothing. Assign roles before you turn it on. In a group of Sites, enforcement is always on.

Scheduled scripts and email from Claude

  • Run existing scripts, and Run now on a schedule: DataMagik - Viewer. Viewer cannot read script code or create, change or enable schedules.
  • Write scripts and create or enable schedules: Automate Builder. A scheduled script runs as the person who last saved the schedule or switched it on. It keeps running if that person only loses a role. If that person is deactivated or leaves the company, the schedule is paused and your administrators are notified; whoever then saves it or switches it back on becomes the person it runs as, and it runs again. See Script Schedules.
  • Send email (one-off, or with an existing template): DataMagik - Builder, which the built-in Automate Builder role includes, once your company has an email configuration (Email Configuration). Up to 50 recipients per email. Scripts and scheduled scripts that send email are not affected.
  • Create or edit email templates, and see email history: a role with the Email Management permission. No built-in customer role includes it; ask DataMagik to set one up.

Single sign-on users

People who sign in to DataMagik with Microsoft or Google connect Claude the same way. When the DataMagik sign-in page opens from Claude, they choose Sign in with Microsoft (or Google).

Troubleshooting

Claude saysWhat to do
MCP is not enabled for your companyYour license does not include MCP access. Contact DataMagik.
A tool is not allowed, or permission deniedThe person does not hold the role the action needs in the company Claude is working in. Ask Claude which company is active, then check their roles there.
Credential ID is requiredGive Claude the ODBC credential number, or run a saved query that has a credential chosen.
This company has no active ODBC credentialA Builder or administrator adds the Plex ODBC credential on the Credentials page.
Access to a database, table or PCN is deniedA SQL Access Role is limiting the person. Add what they need to their role, or assign another role.
Email is not configuredAn administrator sets up the company's sending account under Email Configuration.
Sending email needs the DataMagik - Builder role.Give the person Automate Builder, which includes DataMagik - Builder.
Was this page helpful?