Skip to end of banner
Go to start of banner

projectsWithPermissionForUser

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

« Previous Version 2 Next »

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


  • No labels