DriveWorks Pro 15: SppGetAllUsers [send feedback...]

SppGetAllUsers

Returns a table array of all the users in the group, including their teams. When this function has no arguments it only updates when the project is opened or a specification started or opened. The overload has one argument whose value needs to change in order for the function to be recalculated.

Consider using the core function SecGetUsersInTeam.

Syntax

SppGetAllUsers([Recalculation Trigger])

Where:

Recalculation Trigger (optional) is the trigger to force a recalculation during the running of a specification.

See How To: Force a data refresh when data has changed for one example of implementing a trigger.

Examples

RuleMeaning
SppGetAllUsers(DWConstantRefreshData)Will return a table array of all DriveWorks Users listed under Security Settings.

Example Data Returned as a Table Array
{"Username","DisplayName","EmailAddress","IsTeamleader","IsEnabled","Teams";"Admin","","","True","True","Administrators";"Ian","Ian","ian@myCo.uk","True","True","Sales|Administrators";"Paul","Paul","paul@myCo.uk","False","True","Administrators";"Jane","Jane","jane@myCo.uk","True","True","Sales";"Megan","Megan","megan@myCo.uk","False","False","Sales"}

Example Table Array in the Form of a Table
UsernameDisplayNameEmailAddressIsTeamleaderIsEnabledTeams
AdminTRUETRUEAdministrators
IanIanian@myCo.ukTRUETRUESales|Administrators
PaulPaulpaul@myCo.ukFALSETRUEAdministrators
JaneJanejane@myCo.ukTRUETRUESales
MeganMeganmegan@myCo.ukFALSEFALSESales

Table of Contents