You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"=== Diagnostic: Graph role definitions on LOCAL (:9200) ==="
343
+
curl -kfsSL -u admin:admin "https://localhost:9200/graph/v1beta1/roleManagement/permissions/roleDefinitions"| python3 -c "import sys,json; roles=json.load(sys.stdin); [print(r['id'], r['displayName']) for r in roles]"||echo"WARNING: Graph role definitions failed on LOCAL"
344
+
345
+
echo"=== Diagnostic: listPermissions with Federated filter (admin folder) ==="
346
+
ADMIN_HOME_ID=$(curl -kfsSL -u admin:admin "https://localhost:9200/graph/v1.0/me/drives"| python3 -c "import sys,json; d=json.load(sys.stdin); print([x for x in d['value'] if x['driveType']=='personal'][0]['id'])"2>/dev/null ||echo"")
347
+
if [ -n"$ADMIN_HOME_ID" ];then
348
+
echo" Drive ID: $ADMIN_HOME_ID"
349
+
# Create a test folder to get a valid non-root item ID (space root has no federated roles by design)
| python3 -c "import sys,json; d=json.load(sys.stdin); roles=d.get('@libre.graph.permissions.roles.allowedValues',[]); [print(r['id'], r.get('displayName','?')) for r in roles] or print(' (empty roles list)')" \
360
+
2>/dev/null ||echo"WARNING: listPermissions with Federated filter failed"
0 commit comments