Composite pattern used when we want to treat a group of object in similar way with a single object. It's usually used to represent tree structures of object.
For example, let's make a tree structure with User as the leaf object and Group as the Composite object.