Skip to end of banner
Go to start of banner

groupsInRole

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available starting with SIL Engine 4.8.0.4.

Syntax

groupsInRole(project, role)


Description

Returns the groups that correspond to a certain role on the specified project.

Parameters


Parameter name

Type

Required

Description

project

string

Yes

Key of the selected project.

role

string

Yes

Name of the role that is verified.


Return type


string []


Returns a list with the groups who are associated with the given role on the specified project.

Example

string projectKey = "TEST";
string role = "Administrators";
string [] groups = groupsInRole(projectKey, role);
for (string g in groups) {
    runnerLog("Returned group: "+ g);
}
  • No labels