Tests/scenarios/normal1/test.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
    "config": {
        "defaultAccess": "noAccess",
        "test": "someValue"
    },
    "roles": [
        {
            "rolename": "db_datareader",
            "owner": "dbo"
        },
        {
            "rolename": "db_datawriter",
            "owner": "dbo"
        }
    ],
    "users": [
                {
                    "username": "testuser",
                    "roles": [
                        "db_datareader",
                        "db_datawriter"
                    ],
                    "permissions":[
                        { "securable": "normal1",
                            "permission": "connect"
                        },
                        {
                            "securable": "sp_perms",
                            "permission": "execute"

                        },
                        {
                            "securable": "vw_select",
                            "permission": "select"
                        },
                        {
                            "securable": "vw_select",
                            "permission": "update"
                        }
                    ]
                },
                {
                    "username": "readonly",
                    "roles": [
                        "db_datareader"
                    ],
                    "permissions":[
                        { "securable": "normal1",
                            "permission": "connect"
                        },
                        {
                            "securable": "vw_select",
                            "permission": "select"
                        }
                    ]
                }
    ]
}