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. Returns: A Snowflake Column object representing the name of the active role. Return type: Column Example: CopyExpand>>> df = session.create_dataframe([1]) >>> result = df.select(invoker_role()).collect() >>> assert len(result) == 1 >>> assert isinstance(result[0]["INVOKER_ROLE()"], str) >>> assert len(result[0]["INVOKER_ROLE()"]) > 0 Show lessSee moreScroll to top