There are some cases where developers need to show lists of users or groups in an application. For example, in a calling application, it may be required to show a list of what users are available to call.
application.participants object returns a list of participants visible to the user as defined by their permissions. The participant object includes user and group metadata.
View the Scripting API Reference for more details.