Global Variables

Is there a place where I can get all the global variables defined? For eg, Unuder certain conditions, I want to assign a ToDo to users of certain roles. Do I need to go to DB for that, or is there a global variable that I can use?

Depends on your use case. You should write a script for this.