BS-8961 : Create a new command to replace the command GetActorIdsForUserIdIncludingTeam

- Fix request for Oracle & SQLServer