title: TCode per department and user
body: <p>I have a strange request from the business. They want a report where they give a tcode or tcodes and the program will check which department has this/these and which users.</p>
  
  <p>OK, I have found a couple of tables like AGR_TCODES (Assignment of roles to Tcodes), AGR_USERS (Assignment of roles to users) and USER_ADDR (Users by address data) to find what I want.</p>
  
  <p>My question is: if a user has access to a tcode that it does not belong to one of his role, how can we catch this?</p>
  
  <p>For example: I have access to VA03 but none of my roles is connected to this tcode.</p>
  
  <p>Is there any way to catch this?</p>