Agent skill

grammarly-enterprise-rbac

Configure Grammarly enterprise role-based access control. Use when managing team access, configuring organization settings, or implementing Grammarly enterprise governance. Trigger with phrases like "grammarly enterprise", "grammarly teams", "grammarly rbac", "grammarly organization", "grammarly admin".

Stars 1,803
Forks 241

Install this agent skill to your Project

npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/grammarly-pack/skills/grammarly-enterprise-rbac

SKILL.md

Grammarly Enterprise RBAC

Overview

Manage Grammarly enterprise access with OAuth scopes and organization-level API credentials.

OAuth Scopes

Scope Access
scores-api:read Read writing scores
scores-api:write Submit text for scoring
ai-detection:read Read AI detection results
plagiarism:read Read plagiarism results

Instructions

Step 1: Separate Credentials Per Team

typescript
const teamClients = {
  content: new GrammarlyClient(process.env.GRAMMARLY_CONTENT_ID!, process.env.GRAMMARLY_CONTENT_SECRET!),
  marketing: new GrammarlyClient(process.env.GRAMMARLY_MARKETING_ID!, process.env.GRAMMARLY_MARKETING_SECRET!),
};

Step 2: Scope-Based Access

typescript
function canUseAPI(team: string, api: 'score' | 'ai' | 'plagiarism'): boolean {
  const permissions: Record<string, string[]> = {
    content: ['score', 'ai', 'plagiarism'],
    marketing: ['score'],
    engineering: ['score', 'ai'],
  };
  return permissions[team]?.includes(api) ?? false;
}

Resources

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results