port-labs/port-skills

port-permissions

Configure Port's role-based access control: context lake (blueprint/entity) permissions (read, register, update, or delete entities, down to a single property or relation) and page/dashboard view/edit permissions.

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/port-labs/port-skills --skill port-permissions

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Port permissions

Port's RBAC shows up in two independent places that reuse the same roles/users/teams shape: context lake entities (a blueprint's read, register, update, unregister) and pages/dashboards (read, update). This skill covers both, plus the roles and ownership model that backs them.

Permissions on a workflow's own SELF_SERVE_TRIGGER node are a separate, simpler mechanism owned by the port-workflows skill, see its permissions reference instead of this one.

Prerequisites

  • Go over the port-getting-started skill first if this is your first time

working with Port.

  • The blueprint or page whose permissions you're changing already exists.
  • If Port's MCP server is connected, use list_blueprints to read current

blueprint definitions before editing, and simulate_blueprint_permissions to test a context lake permission change before applying it. There is no MCP tool that writes permissions directly, every step below applies changes through the raw API, UI, or Terraform. Search search_port_knowledge_sources for anything this skill doesn't cover.

How to configure it

  1. Know the two building blocks every permission type reuses: Port's

three roles (Admin, blueprint Moderator, Member) and the $team ownership meta-property that backs every ownedByTeam flag. See references/roles-and-ownership.md.

  1. Set context lake (blueprint/entity) permissions: who can read,

register, update, or unregister entities of a blueprint, down to a single property or relation, a dynamic read policy, and the built-in permission simulator. See references/context-lake-permissions.md.

  1. Set page and dashboard permissions: who can view or edit a catalog

or dashboard page. See references/page-permissions.md.

  1. Setting permissions on a workflow trigger instead? That's a

different, simpler shape scoped to one SELF_SERVE_TRIGGER node, not this skill, use the port-workflows skill's permissions reference.

Steps 2 and 3 are independent, do whichever the task needs.

Examples

a blueprint's entities permissions combining role/user/team grants, ownedByTeam registration, and a dynamic read policy.

a PATCH body giving a team read access and restricting update to Admins.

Common pitfalls

SymptomCauseFix
Set ownedByTeam and a dynamic read policy on the same scope, only one worksWhen entity owner permissions are configured, the dynamic read policy is ignoredPick one: ownedByTeam for team-based access, policy for anything else
Granular updateProperties grant has no effectA global update permission is also set, global overrides granularRemove the global update grant, or fold the property-level grant into it
User can't register a new entity even though register allows their roleThe entity also has a required property or relation they lack updateProperties/updateRelations access toGrant edit access to every required field, not just the top-level register scope
PATCHing page permissions removed a role's/user's/team's access unexpectedlyPATCH replaces each key you include entirely; omitting an existing member of that key removes themInclude the full desired list for every key you send, not just the ones you're adding
Terraform permission resource conflicts with UI editsport_page_permissions fully owns the resource once appliedManage a given page's permissions from one place, Terraform or the UI, not both
Trying to add a dynamic queries/conditions policy to a workflow triggerThat shape belongs to Port's legacy, deprecated Actions & Automations permissions, not WorkflowsUse the simpler policy (combinator/rules over user/userTeams/form context) documented in port-workflows' permissions reference instead

Quick reference

  • Three roles: Admin (everything), blueprint Moderator (everything on one

blueprint), Member (read + execute workflows by default).

  • Context lake entity permission scopes: read, register, unregister,

update, updateProperties.<property>, updateRelations.<relation>. Each takes roles/users/teams/ownedByTeam; read also takes a dynamic policy. API: GET/PATCH /v1/blueprints/{id}/permissions.

  • Page permission scopes: read, update. Each takes

roles/users/teams. API: PATCH /v1/pages/{id}/permissions.

  • For a workflow's SELF_SERVE_TRIGGER node permissions (a different,

simpler shape scoped to one trigger), see the port-workflows skill's permissions reference instead of this one.

Tâches connexes

du même dépôt

Autres Skills

Tous les Skills
port-labs
Communauté

port-blueprints

Model a Port context lake data model using blueprints, defining identifiers, titles, icons, properties, relations, and calculation, mirror, or aggregation properties, then author them with the raw Port API. Use when asked to create a Port blueprint, define a Port data model, add a property to a blueprint, relate two blueprints, add a calculation property, add a mirror property, or add an aggregation property.

installations
1
GitHub Stars
3
Mis à jour
12 oct.
port-labs
Communauté

port-getting-started

Set up Port and connect it to your coding agent: sign up for a Port account, install Port's MCP server, and optionally the Port CLI. Use when asked to 'get started with Port', 'set up Port', 'connect Port MCP', 'install the Port MCP server', 'how do I use Port from Claude Code/Cursor/VS Code', or before using any other skill in this repo for the first time.

installations
1
GitHub Stars
3
Mis à jour
12 oct.
port-labs
Communauté

port-skill-creator

Author a new Agent Skill for this repo (port-labs/port-skills): scaffold the skills/port- / directory, write valid frontmatter, structure the body as a short router into references/ and assets/, validate it, and regenerate the README index. Use when asked to create a new Port skill, add a skill to this repo, help me write a SKILL.md, contribute a skill, port an internal Port AI skill to this repo, or fix a skill that fails validate-skill.js.

installations
1
GitHub Stars
3
Mis à jour
12 oct.
port-labs
Communauté

port-context-lake

Design and build a Port context lake: a connected, semantically-rich data model of blueprints, relations, and mirror/aggregation properties that AI agents, scorecards, and workflows can query and act on, not just a plain software catalog. Use when asked to 'build a context lake', 'design a Port data model for AI agents', 'set up the engineering intelligence data model', 'connect services to teams and orgs in Port', 'model our org hierarchy in Port', or 'why can't Port AI answer questions about o

installations
1
GitHub Stars
3
Mis à jour
12 oct.