Skip to end of metadata
Go to start of metadata

Availability

This routine is available starting with SIL Engine™ 3.1.2/SIL Engine™ 3.0.14.


Syntax

projectsWithPermissionForUser(user, permissionKey)


Description

Retrieves the project keys where the given user has the given permission.

Parameters

Parameter name

Type

Required

Description

user

String

Yes

Username.

permissionKeyStringYesKey of the permission.

Return type

string[]

The return value is a string array containing all the project keys where the given user has the given permission.

Example

return projectsWithPermissionForUser("admin", "ADMINISTER_PROJECTS"));

Result: DEMO|ITSD|TST

See also