From 5e60b1828f2d5bbad75fa6ff9d4de9e74a4a15ad Mon Sep 17 00:00:00 2001 From: Roman Steiner Date: Fri, 2 Dec 2022 18:37:23 +0000 Subject: [PATCH] first sample for creating caslibs --- scripts/authcaslib.json | 109 +++++++++++++++++++++++++++++++++++++++ scripts/createCaslibs.sh | 6 +++ 2 files changed, 115 insertions(+) create mode 100644 scripts/authcaslib.json create mode 100644 scripts/createCaslibs.sh diff --git a/scripts/authcaslib.json b/scripts/authcaslib.json new file mode 100644 index 0000000..043b1d6 --- /dev/null +++ b/scripts/authcaslib.json @@ -0,0 +1,109 @@ +{ + "items": [ + { + "identity": "dwh", + "identityType": "group", + "permission": "readInfo", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "select", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "insert", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "update", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "delete", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "createTable", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "dropTable", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "alterTable", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "promote", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "alterCaslib", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "manageAccess", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "deleteSource", + "type": "grant", + "version": 1 + }, + { + "identity": "dwh", + "identityType": "group", + "permission": "limitedPromote", + "type": "grant", + "version": 1 + }, + { + "identity": "*", + "identityType": "group", + "permission": "readInfo", + "type": "grant", + "version": 1 + }, + { + "identity": "*", + "identityType": "group", + "permission": "select", + "type": "grant", + "version": 1 + } + ] +} diff --git a/scripts/createCaslibs.sh b/scripts/createCaslibs.sh new file mode 100644 index 0000000..5a62688 --- /dev/null +++ b/scripts/createCaslibs.sh @@ -0,0 +1,6 @@ +#!/bin/bash +SAS_ADMIN=/home/jan/sas-admin + +$SAS_ADMIN -k cas caslibs clear-controls --server cas-shared-default --name test-rmn --force --su +$SAS_ADMIN -k cas caslibs add-controls --server cas-shared-default --name test-rmn --source-file authcaslib.json --su +