hubspot-enterprise-rbac

Featured

Configure HubSpot enterprise access control with OAuth scopes and team permissions. Use when implementing role-based access, configuring per-team HubSpot scopes, or setting up multi-user access patterns for HubSpot integrations. Trigger with phrases like "hubspot RBAC", "hubspot roles", "hubspot enterprise", "hubspot permissions", "hubspot team access", "hubspot OAuth scopes".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# HubSpot Enterprise RBAC ## Overview Implement role-based access control for HubSpot integrations using OAuth scopes, multiple private apps with different permissions, and application-level authorization. ## Prerequisites - HubSpot Enterprise subscription (for team-level permissions) - Understanding of HubSpot OAuth scopes - Multiple private apps or OAuth app configured ## Instructions ### Step 1: Scope-Based Access Model HubSpot's permission model is scope-based. Create separate private apps for different access levels: | Role | Private App | Scopes | Use Case | |------|-----------|--------|----------| | Reader | `hubspot-readonly` | `crm.objects.contacts.read`, `crm.objects.deals.read`, `crm.objects.companies.read` | Dashboards, reports | | Writer | `hubspot-readwrite` | Above + `.write` variants | CRM operations | | Admin | `hubspot-admin` | All CRM scopes + `crm.schemas.*.read` | Schema management | | Sync | `hubspot-sync` | `crm.objects.contacts.read`, `crm.objects.contacts.write`, `crm.import` | Data sync jobs | | Webhook | `hubspot-webhook` | `automation` | Event handling only | ### Step 2: Multi-Token Client Factory ```typescript import * as hubspot from '@hubspot/api-client'; type AccessLevel = 'reader' | 'writer' | 'admin' | 'sync'; const TOKEN_MAP: Record<AccessLevel, string> = { reader: process.env.HUBSPOT_READER_TOKEN!, writer: process.env.HUBSPOT_WRITER_TOKEN!, admin: process.env.HUBSPOT_ADMIN_TOKEN!, sync: process.env.HUBSPOT_SYNC_TOKEN!, }...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category