Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/intercom-enterprise-rbac

@0d57af8
Run it yourself

Configure Intercom enterprise OAuth, admin roles, and app-level access control. Use when implementing OAuth integration, managing admin permissions, or setting up organization-level controls for Intercom — e.g. gating a delete endpoint by role, installing a public app for a customer workspace, or adding admin audit logging. Trigger with phrases like "intercom OAuth", "intercom RBAC", "intercom enterprise", "intercom roles", "intercom permissions", "intercom admin access".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/intercom-enterprise-rbac

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈466 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Intercom Enterprise RBAC — Worked Examples

End-to-end scenarios that combine the building blocks from references/implementation.md.

Example 1: Gate a delete endpoint behind role permissions

An agent should never be able to hard-delete a contact. Wire the requirePermission middleware so only owners reach the handler.

// Only "owner" carries "contacts:delete" in ROLE_PERMISSIONS
app.delete(
  "/api/contacts/:id",
  requirePermission("contacts:delete"),
  deleteContactHandler
);

// An agent hitting this endpoint gets:
// 403 { error: "Forbidden", message: "Missing permission: contacts:delete",
//       required: "contacts:delete", currentRole: "agent" }

Example 2: Install a public app for a new customer workspace

// 1. Send the customer to the consent screen
const state = crypto.randomUUID();
const authUrl = getAuthUrl(state);           // persist `state` to verify on callback
// redirect(authUrl)

// 2. On the callback, verify state, then exchange the code
const { token } = await exchangeCode(req.query.code as string);

// 3. Persist one token per workspace for multi-tenant access
const auth: WorkspaceAuth = {
  workspaceId: req.query.workspace_id as string,
  token,
  installedAt: new Date(),
  installedBy: req.user.email,
};
await db.workspaceAuth.upsert(auth);

Example 3: Route + audit a sensitive assignment in one flow

// Route a billing question to the billing team, then record the action
await routeConversation("conv-9001", "admin-42", "billing");

await auditAdminAction({
  timestamp: new Date().toISOString(),
  adminId: "admin-42",
  adminEmail: "lead@acme.com",
  action: "conversations:assign",
  resource: "conversation",
  resourceId: "conv-9001",
  success: true,
});
// The "settings"/"delete" branch would also emit a [AUDIT] console warning.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a secure template for implementing Intercom OAuth and Role-Based Access Control (RBAC), following industry standards for secret management and authentication security.

  • Socket2mo

    1 alert: gptAnomaly

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "support",
  "messaging",
  "intercom"
]
All 3 allowed tools
ReadWriteEdit
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/intercom-enterprise-rbac