- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-19-2025 02:36 AM
// Check if user is a member of a specific role
if (User.Roles && User.Roles.length > 0) {
for (var i = 0; i < User.Roles.length; i++) {
if (User.Roles[i].Name === 'Target Role Name') {
return true;
}
}
}
return false;
09-24-2025 06:07 AM
After checking with our internal teams, we do not believe this is possible because as it doesn't have access to the full user information which would include roles. In other words, ironically this role scripting feature doesn't know what roles you're in. If your use case is something like "If user is in role A, put in role B," then you can simply nest the roles though.
09-24-2025 06:07 AM
After checking with our internal teams, we do not believe this is possible because as it doesn't have access to the full user information which would include roles. In other words, ironically this role scripting feature doesn't know what roles you're in. If your use case is something like "If user is in role A, put in role B," then you can simply nest the roles though.
10-17-2025 02:33 AM
Hello Jaime
Thank you for your answer
Best Regards
Pierryck
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

