Dec 1, 2026: Temporary role grants to users (General availability)

With this release, temporary role grants to users are generally available. When you grant an account role to a user with GRANT ROLE, you can set the grant to expire, so the user loses access through that grant without a separate revoke:

  • Use the FOR INTERVAL clause to set how long the grant lasts.
  • Use the UNTIL clause to set when the grant expires.
  • Use the RESET EXPIRATION clause to set the expiration of an existing grant to exactly the value in the statement, for example, to shorten it.
GRANT ROLE oncall TO USER alice FOR INTERVAL '24 HOURS';

The output of SHOW GRANTS TO USER and SHOW GRANTS OF ROLE and the GRANTS_TO_USERS view include an expires_on column that shows when a temporary grant expires. For more information, see SHOW GRANTS. When approvers grant a role to a user through Request Access in Workspaces, they can also set an end date.

If a grantor grants the same role to the same user again without FOR INTERVAL or UNTIL, an existing temporary grant from that grantor becomes permanent. For details, see Granting a role to a user again.

For more information, see Temporary role grants to users.