isUserInRole

isUserInRole

 

Syntax

isUserInRole(user,project, role)

Package

 

Alias

 

Pkg Usage

 

Description

Returns "true" if the user has a certain role on the specified project.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

User

String

Yes

Username or userkey of the user in question.

Project key

String

Yes

Key of the selected project.

Role name

String

Yes

Name of the role that is verified.

Return Type

Boolean

Returns "true" if the user has the role on a project and "false" otherwise.

Example

return isUserInRole("mike", "PRJ", "Developers");

The look-up is first made after the userkey, then after the username.

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.