snowflake.snowpark.functions.invoker_role¶
- snowflake.snowpark.functions.invoker_role() Column[source]¶
Returns the name of the role that was active when the current stored procedure or user-defined function was called.
- Parameters:
_emit_ast (bool, optional) – Whether to emit the abstract syntax tree (AST). Defaults to True.
- Returns:
A Snowflake Column object representing the name of the active role.
- Return type:
Example: