Nov 10, 2026: Temporary role grants to users (Preview)¶
You can now grant an account role to a user temporarily. When you run GRANT ROLE to grant a role to a user, use
the FOR INTERVAL clause to specify how long the grant lasts, or the UNTIL clause to specify when it expires. When the grant expires,
the user automatically loses access through that grant, so you don’t need to revoke it yourself.
To set the expiration of an existing grant to exactly the value you specify, use the RESET EXPIRATION clause. The output of
SHOW GRANTS and the GRANTS_TO_USERS view include an
expires_on column that shows when each grant expires.
For more information, see GRANT ROLE.