Client role assignment schedule job

kali
Tera Contributor

Hi All,

var hr1 = new hr_Utils();
    h1.removeRolesAssigned(userSysId);
    hr2.matchingPortalRoles(profile);
Can you explain what the above code does?
1 REPLY 1

Danish Bhairag2
Tera Sage
Tera Sage

Hi @kali ,

 

var hr1 = new hr_Utils();

 

hr_Utils() is a script include u will be able to find in script include table.

 

h1.removeRolesAssigned(userSysId);
    hr2.matchingPortalRoles(profile); //hr2 object is wrong as i dont see it defined anywhere with the code u pasted. It should be hr1 or u might have not pasted the variable definition for hr2

 

Ignoring the hr obejct after . those are the function which u will be able to find in that script include. you can just try searching with the function name (for eg. removeRolesAssigned) in that script include.

By the function i think it is self explanatory where it is removing assigned roles from a user.

 

Thanks,

Danish