Hi @abhinavmishra14 ,
I am not getting how to get all roles from the site. so that it can be used in custom evaluator.
I think code provided by you above is only to get role for the user that has logged into the server right now that is current user but how to get all the roles present in the site.
Thanks,
Piyush
Evalutors works on each node (evaluate nodes at run time and based on true/false value from evaluation, it hides/shows the actions/indicators). When a user is assigned a role in site or a folder, all nodes within site/folder inherits that role by default, unless you break inheritance manually via manage permissions. In case of role evaluation via evaluator, every node will be evaluated for the curretly logged in user.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.