Check duplicates resources and roles