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-05-26
- Stars
- ★ 0
- 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
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.