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
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlDatabaseObjectPermission/README.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,4 +20,48 @@ property names of the [ObjectPermissionSet](https://docs.microsoft.com/en-us/dot
20
20
21
21
## Known issues
22
22
23
+
### Only one permission per `DSC_DatabaseObjectPermission` instance
24
+
25
+
Each `DSC_DatabaseObjectPermission` instance can only contain a single permission
26
+
name. When multiple permissions need to be configured for the same state (e.g.,
27
+
`Grant`), each permission must be specified in a separate `DSC_DatabaseObjectPermission`
28
+
block. Specifying multiple permissions as a comma-separated string (e.g.,
29
+
`'DELETE,INSERT,SELECT'`) will cause an error similar to:
30
+
31
+
```text
32
+
Cannot bind argument to parameter 'ReferenceObject' because it is null.
33
+
```
34
+
35
+
**Incorrect usage:**
36
+
37
+
<!-- markdownlint-disable MD013 - Line length -->
38
+
```powershell
39
+
Permission = @(
40
+
DSC_DatabaseObjectPermission {
41
+
State = 'Grant'
42
+
Permission = 'DELETE,INSERT,SELECT' # This will fail - multiple permissions in single string
43
+
}
44
+
)
45
+
```
46
+
<!-- markdownlint-enable MD013 - Line length -->
47
+
48
+
**Correct usage:**
49
+
50
+
```powershell
51
+
Permission = @(
52
+
DSC_DatabaseObjectPermission {
53
+
State = 'Grant'
54
+
Permission = 'DELETE'
55
+
}
56
+
DSC_DatabaseObjectPermission {
57
+
State = 'Grant'
58
+
Permission = 'INSERT'
59
+
}
60
+
DSC_DatabaseObjectPermission {
61
+
State = 'Grant'
62
+
Permission = 'SELECT'
63
+
}
64
+
)
65
+
```
66
+
23
67
All issues are not listed here, see [here for all open issues](https://github.com/dsccommunity/SqlServerDsc/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+SqlDatabaseObjectPermission).
0 commit comments