userRoles
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()
userRoles(user)
[string]
userRoles()
To return all roles of the current user.1
userRoles()
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.
1
userRoles(User)
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).
Last modified 7mo ago