Hi @ahmed-24 ,

 

Ya, I think it doesn't work as expected. You can use GlideRecord instead. Glide to table "sys_user_has_role" and check if the requested for user has any of the required roles you mentioned in the script.