If you want to get roles for particular user one of the easiest way is Get user roles global $current_user; require_once(“modules/ACLRoles/ACLRole.php”); $acl_role_obj = new ACLRole(); $user_roles = $acl_role_obj->getUserRoles($current_user->id); // grab a list of the current user’s roles foreach ($user_roles as $role) { $role_to_check=$role; }
Everything you need related to Artificial intelligence, hyper automation, multi experience, distributed cloud, voice as a UI, Internet of behaviors and many more