I want to use custom role in an Evaluator

cancel
Showing results for 
Search instead for 
Did you mean: 
piyush48
Established Member

Re: I want to use custom role in an Evaluator

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

abhinavmishra14
Advanced

Re: I want to use custom role in an Evaluator

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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)