The question was what "SNC.RoleManagementAPI()" does.  It seems to handle a lot of different role management functions.  Allen Andreas is correct that we don't have details on what it does.

 

However, what Mario is describing is a separate plugin called "Contextual Security: Role Management V2".  The "V2" part adds role de-duplication functionality.

 

The actual "SNC.RoleManagementAPI()" utility, however, does other things.  It'd be nice if we knew more clearly what it does, other than learning through script review.