Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engine™ 3.1.2/SIL Engine™ 3.0.14.
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

projectsWithPermissionForUser(user, permissionKey)

Package

Alias

Pkg Usage

Description

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

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

Parameters

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

Parameter name

Type

Required

Description

user

String

Yes

Username.

permissionKey

String

Yes

Key of the permission.

Return

...

Type

stringString[]

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

Example

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

Result:   DEMO|ITSD|TST

See also

Filter by label (Content by label)
showLabelsfalse
max15025
showSpacefalse
cqllabel = "project_routine" and space = currentSpace ( )
labelsprojectarray_routineroutines