shopify-enterprise-rbac

Featured

Implement Shopify Plus access control patterns with staff permissions, multi-location management, and Shopify Organization features. Trigger with phrases like "shopify permissions", "shopify staff", "shopify Plus organization", "shopify roles", "shopify multi-location".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Shopify Enterprise RBAC ## Overview Implement role-based access control for Shopify Plus apps using Shopify's staff member permissions, multi-location features, and Organization-level access. ## Prerequisites - Shopify Plus store (for Organization features) - Understanding of Shopify's staff permission model - `read_users` scope for querying staff permissions ## Instructions ### Step 1: Query Staff Member Permissions ```typescript // Query staff members and their permissions via GraphQL const STAFF_QUERY = `{ staffMembers(first: 50) { edges { node { id email firstName lastName isShopOwner active locale permissions: accessScopes { handle description } } } } }`; // Staff permissions match app access scopes: // "read_products", "write_products", "read_orders", etc. // A staff member can only use app features matching their store permissions ``` ### Step 2: App-Level Role Mapping Map Shopify staff permissions to your app's roles: ```typescript type AppRole = "admin" | "manager" | "viewer" | "fulfillment"; interface RoleMapping { role: AppRole; requiredScopes: string[]; allowedActions: string[]; } const ROLE_MAPPINGS: RoleMapping[] = [ { role: "admin", requiredScopes: ["write_products", "write_orders", "write_customers"], allowedActions: ["*"], }, { role: "manager", requiredScopes: ["write_products", "read_orders"], ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category