projectsWithPermissionForUser

projectsWithPermissionForUser

 

Syntax

projectsWithPermissionForUser(user, permissionKey)

Package

 

Alias

 

Pkg Usage

 

Description

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

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

user

String

Yes

Username.

permissionKey

String

Yes

Key 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

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.