Skip to content

forcedotcom/sf-skills / skills/platform-dataspace-access-configure

platform-dataspace-access-configure

Verified

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.

FileKindSize
SKILL.mdskill md22.8 KB
scripts/inspect-dataspace-scopes.shexecutablescript1.8 KB

scripts/inspect-dataspace-scopes.sh

View on GitHub
#!/bin/bash
# inspect-dataspace-scopes.sh — extract dataspaceScopes from retrieved PermissionSet metadata
# Usage: scripts/inspect-dataspace-scopes.sh <retrieved-dir> [dataspace-api-name]
# Output: PermissionSet|dataspaceScope|dataAccessLevel|objectAccessLevel (one per line)
#         "NO_PERMISSIONSETS_FOUND" if retrieval yielded no permission sets, or
#         "NO_MATCHES" if no retrieved permission set matched
set -euo pipefail

RETRIEVED_DIR="${1:-}"
DATASPACE_FILTER="${2:-}"

[[ -d "$RETRIEVED_DIR" ]] || {
  echo "ERROR: retrieved-dir '$RETRIEVED_DIR' not found" >&2
  exit 1
}

command -v python3 >/dev/null 2>&1 || {
  echo "ERROR: python3 required" >&2
  exit 1
}

python3 - "$RETRIEVED_DIR" "$DATASPACE_FILTER" <<'PYEOF'
import sys, os, glob, xml.etree.ElementTree as ET

retrieved_dir, dataspace_filter = sys.argv[1], sys.argv[2]
ns = {"md": "http://soap.sforce.com/2006/04/metadata"}
rows = []
paths = sorted(glob.glob(
    os.path.join(retrieved_dir, "**", "*.permissionset-meta.xml"), recursive=True
))

if not paths:
    print("NO_PERMISSIONSETS_FOUND")
    sys.exit()

for path in paths:
    permset_name = os.path.basename(path).replace(".permissionset-meta.xml", "")
    try:
        root = ET.parse(path).getroot()
    except ET.ParseError:
        continue

    for scope in root.findall("md:dataspaceScopes", ns):
        name = (scope.findtext("md:dataspaceScope", "", ns) or "").strip()
        if dataspace_filter and name != dataspace_filter:
            continue

        rows.append((
            permset_name,
            name,
            (scope.findtext("md:dataAccessLevel", "", ns) or "").strip(),
            (scope.findtext("md:objectAccessLevel", "", ns) or "").strip()
        ))

print("NO_MATCHES" if not rows else "\n".join("|".join(r) for r in rows))
PYEOF
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall