TM1GlobalSandbox returns the active sandbox for the user.
In this video, TM1GlobalSandbox will be used to get the active sandbox from the AdventureWorks TM1 Server.
Excel
Version 11 and 12
TM1GlobalSandbox(TM1ServerName)