I want to register a plugin such that it fires when the User clicks on MANAGE Roles in associatd view of roles in the USer entity where the user would select the roles .
My objective is to filter the Role that will displayed for assigning .
1. Register a plugin in pre Execute (Primary an secondary entity will be null)
2. Obtain the FetchXML from the input property bag and check for the Entity Name by parsing it. (It should be Role entity)
3. Check for HttpContext.Current to indentify from where the page is called. It should be
4. Modify/Filter the fetchxml based on your condition and update it in the context input property bag.