Distinct an array of objects using JavaScript

I have an array of objects where I wanted make a list of array which is unique while at the same time adding different values to sub property into the distinct object. Example below is an array of a mixture of folders and files, together with it are it details include used size, access users and etc.
In AccessUsers array, there are Accounts their rights :