Home Search

DriveWorks Pro 22
SecGetTeamsForUser

Send Feedback

SecGetTeamsForUser

Returns a table of all of the teams the specified user belongs to.

Syntax

SecGetTeamsForUser([User Name],[Include Team Id])

Where:

User Name is the name of the user whose Team to retrieve.

Include Team Id (optional) is whether the Id column should be included in the result. By default the Id column will not be included.

Examples

RuleResult
SecGetTeamsForUser("Bill")Will return the array value:

{"Team Name","Display Name";"Engineering","Engineering";"Managers","Managers"}

SecGetTeamsForUser("Bill",TRUE)Will return the array value:

{"Team Name","Display Name","ID";"Engineering","Engineering","e1fd25d9-9e4a-4139-bd17-cfd74cf33f1c";"Managers","Managers","59d08a1d-856c-4918-82d3-a8a9e5f7b887"}