Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engine 4.8.0.4.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

groupsInRole(project, role)

Package

Alias

Pkg Usage

Description

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

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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 String []

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

...

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

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "group_routine" and space = currentSpace ( )
labelsarray_routines