Comment on page
To return the role of a given user
Get back all roles the current or a given user is assigned to in a workspace (team) with this function. The result is an array with the role names.
userRoles()To return all roles of the current user.
Result: admin, Leadership Team, World Savior (if Captain America is processing this function, and admin, as well as Leadership Team and World Savior, are assigned roles)
userRoles(myUser)To return all roles of a given user.
Choose the field User and select Steve Rogers.
Result: admin, Leadership Team, World Savior (if Captain America is selected in the field User, and admin, as well as Leadership Team and World Savior are assigned roles).