Browse Source

first sample for creating caslibs

PVA
Roman Steiner 3 years ago
parent
commit
5e60b1828f
  1. 109
      scripts/authcaslib.json
  2. 6
      scripts/createCaslibs.sh

109
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
}
]
}

6
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
Loading…
Cancel
Save