Skip to content
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

Deleting role grant with securityadmin and accountadmin returns SQL error #512

Closed
kuannie1 opened this issue Apr 2, 2021 · 1 comment
Closed
Labels
bug Used to mark issues with provider's incorrect behavior

Comments

@kuannie1
Copy link
Contributor

kuannie1 commented Apr 2, 2021

Provider Version

0.23.2

Terraform Version

0.13.5

Describe the bug

Deleting role grants that involve SECURITYADMIN and ACCOUNTADMIN should be valid actions in this provider.

Expected behavior

I expected deleting this resource would not return errors:

  - resource "snowflake_role_grants" “grant_name” {
      - id        = "SECURITYADMIN" -> null
      - role_name = "SECURITYADMIN" -> null
      - roles     = [
          - "ACCOUNTADMIN",
        ] -> null
      - users     = [
          - “oldUser”,
        ] -> null
    }

I got this error:

Error: 003042 (42501): SQL compilation error:
Role 'SECURITYADMIN' is a system object. REVOKE cannot be performed.
@kuannie1 kuannie1 added the bug Used to mark issues with provider's incorrect behavior label Apr 2, 2021
@sfc-gh-asawicki
Copy link
Collaborator

We are closing this issue as part of a cleanup described in announcement. If you believe that the issue is still valid in v0.89.0, please open a new ticket.

@sfc-gh-asawicki sfc-gh-asawicki closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to mark issues with provider's incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants