Report role - Proposal for Issue 894

I'm sending this pull request, however, still have a problem with a few commits another feature that is in the master branch, related to custom fields.

The comits required for this feature start at "First commit for role-report"