--- title: "system.eam.getGroups" description: "Returns the names of the defined agent organizational groups in the Gateway." --- # system.eam.getGroups > Returns the names of the defined agent organizational groups in the Gateway. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.eam.getGroups()` ### Parameters Nothing ### Returns A string list of group names ### Scope All ## Code Examples ```python title="Example 1" # Return and print all of the EAM groups groups = system.eam.getGroups() for group in groups: print group ```