Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

platform-dataspace-access-configure

БесплатноЗапускает вложенные скриптыНе проверен

Grant a permission set Data Cloud access two ways: (1) data-space (dataspace) access via dataspaceScopes in PermissionSet XML (MDAPI) — create, change, or…

forcedotcomот forcedotcom★ 1 200 звёзд на GitHub

Об этом скилле

platform-dataspace-access-configure

Configure DataSpace access in Salesforce Data Cloud using a two-layer model:

  1. DataSpace-level access — grant a PermissionSet access to a DataSpace by embedding a <dataspaceScopes> element in the permission set XML and deploying via MDAPI.
  2. Object-level access (optional) — grant that permission set access to specific DMO / DLO / CIO objects within the DataSpace using the Object Access Grants Connect API.

The MDAPI layer is required to establish the PermissionSet → DataSpace linkage. The Connect API layer is optional and only needed when access should be scoped to specific objects rather than governed entirely by data governance policies.


When to use this skill (routing)

This is the permission-set / RBAC path to Data Cloud access:

  • "Grant access to a data space" / dataspace access → this skill (Layer 1, dataspaceScopes on a permission set).
  • Grant object access via a permission set / RBAC object grant → this skill (Layer 2, Object Access Grants Connect API).

Object access has a second, separate path — a data-governance access policy (a tag/OLS PolicyRuleDefinition), owned by platform-policy-rule-generate. Infer the mechanism from context; ask only when the request is vague:

  • The user is driving from a permission set (mentions a permission set, RBAC, or an object grant on a permset) → object access grant → this skill, no need to ask.
  • The user frames it as a policy (create a policy / access policy / policy rule, OLS/FLS/RLS, tag/classification-based) → route to platform-policy-rule-generate.
  • The request is genuinely vague — "grant object access to X" with no mechanism and no clue → ASK: the permission-set way (this skill) or the policy way (platform-policy-rule-generate)? If it is also unclear whether the object is a Data Cloud object, ask which object first.

"Access to a data space" is always this skill (the permission-set / dataspaceScopes path) — no disambiguation needed.


Decide the Case First

Case B — preserve existing content. Do not delete content you did not intend to change without the user's confirmation. Fix deploy or validation errors that trace to your own <dataspaceScopes> block (wrong element or enum names). For errors that originate in pre-existing content you were told to preserve (e.g. a <tabSettings> or <fieldPermissions> entry), make no further edits to that content and report the error message and the offending element in your reply. A request to fix validation errors does not authorize removing content the user told you to preserve; deleting it needs the user's explicit confirmation.

Pick exactly one case from the table below before writing any files. Each case has a different output shape.

Case User intent Permission set state Files to emit
A. Create new permset with DS access "create a permission set called X with dataspace scope Y" does NOT exist yet permissionsets/<Name>.permissionset-meta.xml and package.xml (create package.xml only if absent)
B. Add DS access to existing permset "grant existing permission set X access to dataspace Y" already deployed (may contain other permissions) patched permissionsets/<Name>.permissionset-meta.xml and package.xml (keep the existing one if present; create only if absent) — see Case B workflow below
C. Object-level grant only "grant permset X access to object Z (in dataspace Y)" — permset + scope already configured already deployed with dataspaceScopes api-request.json (Connect API body). NO permission set XML, NO package.xml
D. Inspect existing DS access "which permission sets have access to dataspace Y?" any chat/report only. NO deployable files, NO runtime API mutation

Only emit the files listed for the case you picked. Emitting Case A/B files for a Case C prompt (or vice versa) is a correctness failure — extra files change the deployment shape.

Case B — critical: PermissionSet MDAPI deploy is a full metadata replace. Every <objectPermissions>, <fieldPermissions>, <userPermissions>, <tabSettings>, <applicationVisibilities>, <recordTypeVisibilities>, <customPermissions>, <pageAccesses>, <classAccesses>, <customMetadataTypeAccesses>, <customSettingAccesses>, <externalDataSourceAccesses> element you omit from the redeploy is deleted from the org. Before adding, changing, or removing <dataspaceScopes> on an existing permset, start from its current XML and patch it — never author a permission set from scratch or write placeholder comments such as "replace with actual permissions", and never invent permissions that are not in the file.

Case B workflow

  1. Local project first. If the workspace already contains permissionsets/<Name>.permissionset-meta.xml (e.g. under force-app/main/default/), READ that file first and edit it in
Полный SKILL.md на GitHub

Установить platform-dataspace-access-configure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/inspect-dataspace-scopes.sh

FAQ

Что делает скилл platform-dataspace-access-configure?

Grant a permission set Data Cloud access two ways: (1) data-space (dataspace) access via dataspaceScopes in PermissionSet XML (MDAPI) — create, change, or remove it; (2) object-level access to a DMO/DLO/CIO object (e.g. Account__dlm) via the Object Access Grants Connect API (ssot/data-governance/object-access-grants) — grant, list, revoke; plus read-only scope inspection. TRIGGER on: dataspace scope / data space access for a permission set, dataAccessLevel / objectAccessLevel, 'use the Connect API to grant a permission set access to an <object>__dlm', RBAC object grants. DO NOT TRIGGER for creating the dataspace itself (the Data 360 data-space skill), a generic permission set with no dataspace access (platform-permission-set-generate), or an access policy / policy rule / tag-based access (platform-policy-rule-generate). For a vague object-access ask, ask permission-set way vs policy way.

Как установить скилл platform-dataspace-access-configure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл platform-dataspace-access-configure запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить platform-dataspace-access-configure с