-
-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-DbaPermission does not process DENY #9416
Get-DbaPermission does not process DENY #9416
Conversation
PS> $perm = Get-DbaPermission @Splat -ExcludeSystemObjects PS> $perm|? PermState -eq DENY|select -f 1 PermState,PermissionName,GrantStatement PermState : DENY PermissionName : DELETE GrantStatement : GRANT DELETE ON [dbo].[table1] TO [user1] PS> $perm = Get-DbaPermission @Splat -ExcludeSystemObjects PS> $perm|? PermState -eq DENY|select -f 1 PermState,PermissionName,GrantStatement PermState : DENY PermissionName : DELETE GrantStatement : GRANT DELETE ON [dbo].[table1] TO [user1]
What can I do to help it pass the last check? Thanks |
hi @pollusb , failure was seemingly unrelated. I restarted the CI process. |
Thanks for the tip
Le ven. 5 juill. 2024 03:00, Simone Bizzotto ***@***.***> a
écrit :
… hi @pollusb <https://github.com/pollusb> , failure was seemingly
unrelated. I restarted the CI process.
PS: If I'm not around just pushing a new commit will trigger the CI
automatically.
—
Reply to this email directly, view it on GitHub
<#9416 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFFZ4P7BCBCPM3DSXL4XOTZKZACRAVCNFSM6AAAAABKLX4CAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGMYDSOJQG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Imran-imtiaz48 Thanks |
The actual code does not provide the right TSQL command. On database objects, you can I know that the column name is GrantStatement and RevokeStatement. We shouldn't create a new column DenyColumn because you can REVOKE both GRANT or DENY in the same way. GRANT SELECT on dbo.Table1 to User1 -- would give access
DENY SELECT on dbo.Table1 to User1 -- would revoke the precedent grant and deny access
REVOKE SELECT on dbo.Table1 to User1 -- would revoke the precedent deny |
@pollusb please ignore the review, it's AI generated. I appreciate AI but it needs to be implemented with intent and after a discussion with the team. |
and thank you! 🥳 |
Thanks to you. |
Type of Change
.\tests\manual.pester.ps1
)Purpose
Resolve wrong GrantStatement
Commands to test