perplexity-enterprise-rbac
Configure Perplexity enterprise SSO, role-based access control, and organization management. Use when implementing SSO integration, configuring role-based permissions, or setting up organization-level controls for Perplexity. Trigger with phrases like "perplexity SSO", "perplexity RBAC", "perplexity enterprise", "perplexity roles", "perplexity permissions", "perplexity SAML".
- License 许可
- MIT
- 最近更新
- 2026-03-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- perplexity-enterprise-rbac
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Configure Perplexity enterprise SSO, role-based access control, and organization management. Use when implementing SSO integration, configuring role-based permissions, or setting up organization-level controls for Perplexity. Trigger with phrases like "perplexity SSO", "perplexity RBAC", "perplexity enterprise", "perplexity roles", "perplexity permissions", "perplexity SAML".
- allowed-tools
- Read, Write, Edit
- compatible-with
- claude-code, codex, openclaw
03 SKILL.md 正文
Perplexity Enterprise RBAC
Overview
Manage access to Perplexity's AI search API through API key scoping and per-query cost controls. Perplexity charges per query with pricing varying by model -- sonar (lightweight) costs less per query than sonar-pro (deeper research).
Prerequisites
- Perplexity API account at docs.perplexity.ai
- API key with organization admin access
- Understanding of model pricing tiers (sonar vs sonar-pro)
Instructions
Step 1: Create Model-Restricted API Keys
set -euo pipefail
# Key for the support bot (lightweight model only, low cost)
curl -X POST https://api.perplexity.ai/v1/api-keys \
-H "Authorization: Bearer $PPLX_ADMIN_KEY" \
-d '{
"name": "support-bot-prod",
"allowed_models": ["sonar"],
"rate_limit_rpm": 100,
"monthly_budget_usd": 200 # HTTP 200 OK
}'
# Key for the research team (full model access)
curl -X POST https://api.perplexity.ai/v1/api-keys \
-H "Authorization: Bearer $PPLX_ADMIN_KEY" \
-d '{
"name": "research-team",
"allowed_models": ["sonar", "sonar-pro"],
"rate_limit_rpm": 60,
"monthly_budget_usd": 1000 # 1000: 1 second in ms
}'
Step 2: Implement a Gateway with Query Routing
// pplx-gateway.ts - Route queries to appropriate model by team
const TEAM_CONFIG: Record<string, { model: string; maxTokens: number }> = {
support: { model: 'sonar', maxTokens: 512 }, # 512 bytes
sales: { model: 'sonar', maxTokens: 1024 }, # 1024: 1 KB
research: { model: 'sonar-pro', maxTokens: 4096 }, # 4096: 4 KB
};
function getModelForTeam(team: string): { model: string; maxTokens: number } {
return TEAM_CONFIG[team] || TEAM_CONFIG.support;
}
Step 3: Configure Search Domain Restrictions
set -euo pipefail
# Restrict search to approved sources for compliance
curl -X POST https://api.perplexity.ai/chat/completions \
-H "Authorization: Bearer $PPLX_API_KEY" \
-d '{
"model": "sonar",
"messages": [{"role": "user", "content": "latest SEC filing for AAPL"}],
"search_domain_filter": ["sec.gov", "edgar.sec.gov"],
"return_citations": true
}'
Step 4: Monitor Usage and Cost
set -euo pipefail
# Check API usage by key
curl https://api.perplexity.ai/v1/usage \
-H "Authorization: Bearer $PPLX_ADMIN_KEY" | \
jq '.keys[] | {name, queries_today, cost_today_usd, budget_remaining}'
Step 5: Enforce Key Rotation
Rotate API keys every 90 days. Label keys with creation date (research-team-2026Q1) for easy tracking. Create new key, deploy, then delete old key after 24-hour overlap.
Error Handling
| Issue | Cause | Solution |
|---|---|---|
401 invalid_api_key |
Key revoked or expired | Generate new key |
403 model_not_allowed |
Key restricted from sonar-pro | Use sonar or request broader key |
429 rate_limited |
RPM cap exceeded | Add backoff or increase rate limit |
| Budget cap reached | Monthly spend exhausted | Increase budget or wait for cycle reset |
Examples
Basic usage: Apply perplexity enterprise rbac to a standard project setup with default configuration options.
Advanced scenario: Customize perplexity enterprise rbac for production environments with multiple constraints and team-specific requirements.
Output
- Configuration files or code changes applied to the project
- Validation report confirming correct implementation
- Summary of changes made and their rationale
Resources
- Official Perplexity Enterprise Rbac documentation
- Community best practices and patterns
- Related skills in this plugin pack
04 同仓库更多 Skills
azure-apim-architecture
Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.
apiops-deployment
Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.
apim-policy-authoring
Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.
api-security-review
Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.
jira-cli
Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.
calculator
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.