userRoles
Description
Returns the roles of the provided user in the project.
Parameters
Return Type
String []
Returns a list of roles the user associated with the given user has on the specified project.
Examples
Example 1
//dev1 has the following roles in the project PRJ: developer, tester, business analyst.
string user;
string[] roles;
user = "dev1";
roles = userRoles(project, user);
print ("The user " + user + "has the following roles in the project" + project + ":");
print(roles);
Result: The user dev1 has the following roles in the project PRJ: developer, tester, business analyst. Check the values in log on the next row beginning with <StringPrintFunction>.
Example 2
//current user has the following roles in the project PRJ: developer, tester, business analyst.
string[] roles;
roles = userRoles(project, currentUser());
print ("The current user has the following roles in the project" + project + ":");
print(roles);
Result: The current user has the following roles in the project PRJ: developer, tester, business analyst. Check the values in log on the next row beginning with <StringPrintFunction>.
See also
, multiple selections available, Use left or right arrow keys to navigate selected items
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.