Lyna
SupportBlog
IntroductionFeaturesIntegrationsTips & TricksChangelog
Shopify

Permissions

Lyna gates Shopify access on three independent layers. A write action only runs when all three allow it:

  1. Project access, your role on the Lyna project.
  2. Owner-only write restriction, an optional toggle that limits store changes to the owner.
  3. AI tool permissions, what each Shopify tool is allowed to do (Always allow, Ask, or Never).

Who can read and who can write

Reading a connected store (listing products, collections, orders, and so on) and running write actions both require editor access to the Lyna project. Read-only collaborators see the connector but cannot make changes.

ScenarioRead store dataRun write actions
Project owner / connecting userYesYes
Editor collaborator, owner-only write off (default)YesYes (subject to AI tool permissions)
Editor collaborator, owner-only write onYesNo, owner only
Read-only collaborator (viewer)YesNo

Reads stay open to every collaborator with project access regardless of the owner-only setting. Only write and mutating actions are restricted.


Owner-only write restriction

In the connected Overview tab, the toggle "Only the store owner can manage this store" controls who may run store-changing actions.

  • Off (default): any editor collaborator can run write actions, subject to the AI tool permissions below.
  • On: only the store owner (the workspace owner or the user who connected the store) can run write actions. Other collaborators can still read store data.

This setting defaults off, so existing connections keep their shared-write behavior until someone turns it on. Only the workspace owner or the user who established the connection can change it (and only the project owner or connecting user can disconnect the store).


Workspace default

Set what Lyna can do with Shopify by default across every project in a workspace, under Settings > Connectors > Shopify (in the connected AI Tools tab and on the not-connected screen).

Workspace default and AI tool permissions

  • Enable Shopify for new projects: new projects in the workspace start with the Shopify connector enabled.
  • Default permission: the level (Always allow, Ask each time, or Never) that new or ungoverned projects inherit.

Only workspace owners and admins can change the workspace default. Individual projects can still override it.


AI tool permissions

Each project controls what Lyna's AI can do in the store. There are two global controls plus a per-tool matrix:

  • Enable Shopify: the master toggle for the connector in this project. When off, Lyna's Shopify write tools are blocked.
  • Manage all permissions: sets the default level for every write tool at once. Expand a group to fine-tune individual tools.

Every write tool can be set to one of three levels:

LevelBehavior
Always allowLyna runs the action without asking.
Ask each time (default)Lyna asks for your approval in chat before running the action.
NeverThe action is blocked. Lyna receives a permission-denied result and will not retry.

Per-tool permission matrix expanded

Read and discovery tools (listing or fetching data) are not individually gated and are available to any editor. The permission matrix governs the write and mutating tools listed below. Changing a project's permissions requires project admin access.

How a permission is resolved

When Lyna checks a write tool, it resolves the effective level in this order:

  1. An explicit per-project setting for that tool, if present.
  2. Otherwise, the workspace default.
  3. Otherwise, the built-in default (connector enabled, level Ask each time).

A workspace default can only narrow the built-in default (a workspace set to Never still blocks), and an explicit per-project setting always wins over the workspace default.


The write-tool matrix

These are the tools shown in the per-tool matrix. Every one defaults to Ask each time. The complete tool list, including read tools, is on the AI Tools page.

GroupToolWhat it does
ProductsCreate productAdd new products with variants, images, and pricing.
ProductsUpdate productEdit a product's title, description, tags, status, or media.
ProductsDelete productPermanently remove a product.
ProductsAdd product imageAdd an image from a URL, an upload, or an AI-generated image.
VariantsAdd product variantAdd a variant such as a size or color.
VariantsUpdate product variantEdit a variant's price, SKU, inventory, or options.
VariantsDelete product variantRemove a variant from a product.
CollectionsCreate collectionGroup products into a new collection.
CollectionsUpdate collectionEdit a collection's title, description, or membership.
CollectionsDelete collectionRemove a collection.
Discounts & pricingCreate discount codeCreate a code with a percentage or fixed amount, dates, and limits.
Discounts & pricingUpdate discount codeEdit a discount code's value, schedule, or limits.
Discounts & pricingDelete discount codeRemove a discount code.
Discounts & pricingCreate price ruleCreate a price rule that defines how a discount applies.
Discounts & pricingUpdate price ruleEdit a price rule's conditions or value.
Discounts & pricingDelete price ruleRemove a price rule.
Discounts & pricingCreate automatic discountCreate a discount that applies automatically at checkout.
InventorySet inventoryAdjust available inventory for a variant at a location.
Content & metadataSet metafieldCreate or update a metafield on a product, collection, or other resource.
Content & metadataCreate metaobject definitionDefine a custom content type for structured content.
Content & metadataCreate metaobjectAdd an entry of a custom content type.
Content & metadataUpload fileUpload an image or file to the store's content library.
Orders & customersCreate draft orderDraft an order for a customer before it is finalized.
Orders & customersComplete draft orderTurn a draft order into a real order.
WebhooksCreate webhookSubscribe an endpoint to a webhook topic.
WebhooksDelete webhookRemove a webhook subscription.
PaymentsCreate checkoutMint a cart and return a hosted checkout URL.
Sales channelsPublish productPublish a product to a sales channel.
Sales channelsPublish all productsPublish every product to a sales channel in one step.
API accessRun Admin GraphQL mutationRun a write operation against the Admin GraphQL API.
API accessWrite with Admin RESTSend POST, PUT, PATCH, or DELETE to the Admin REST API.
Storefront & functionsSet storefront variablesWrite the Storefront API environment variables into your app.
Storefront & functionsScaffold storefrontAdd the Storefront client plus starter product and cart routes.
Storefront & functionsScaffold Shopify FunctionGenerate a Shopify Function extension for discounts, validation, or checkout logic.