snowflake.snowpark.functions.current_role¶ snowflake.snowpark.functions.current_role() → Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.1.0/src/snowflake/snowpark/functions.py#L305-L313)¶ Returns the name of the role in use for the current session. Example CopyExpand>>> # Return result is tied to session, so we only test if the result exists >>> result = session.create_dataframe([1]).select(current_role()).collect() >>> assert result is not None Show lessSee moreScroll to top