amazon-redshift-utils icon indicating copy to clipboard operation
amazon-redshift-utils copied to clipboard

Drop user with altered default privileges.

Open gorros opened this issue 5 years ago • 3 comments

I am trying to user v_generate_user_grant_revoke_ddl to change user ownership and drop user. But I am having issues with default acl. Suggested step does not handle that case select regexp_replace(ddl,grantor,'<superuser>') from v_generate_user_grant_revoke_ddl where grantor='<username>' and ddltype='grant' and objtype <>'default acl' order by objseq,grantseq;

And get this error owner of default privileges on new relations belonging to user

gorros avatar Mar 26 '20 09:03 gorros

Are you still having this issue with the latest version of the view? Any chance you can provide a repro?

adedotua avatar Jul 31 '20 23:07 adedotua

I'm getting this too. I'm having trouble tracking down the edits to make to reverse default privileges that were set.

mfrye-blue-owl avatar Oct 02 '20 15:10 mfrye-blue-owl

👍 same

f0o avatar Oct 06 '20 08:10 f0o