A Group S-2 can be located within spaces classified as Group S-1 occupancies. It should be listed with the other occupancy groups present in the building.
It can be considered an accessory occupancy per Section 508.2, but it should be listed with the others and identified as an accessory occupancy. Thus, fire separation and allowable height and area are not affected by the accessory occupancy.
If the 2015 IBC is used, Section 311.1.1 allows storage occupancies of not more than 100 sq. ft. and are "accessory" to another occupancy to be classified as a part of that occupancy to which it is accessory (the 2018 IBC does not put an area limitation on these "accessory" storage spaces). However, what is not clear is can a small storage occupancy (e.g., S-2) use this provision when it is "accessory" to another storage occupancy (e.g., S-1)? If a storage space can be "accessory" to another storage space, then it should not be shown as a separate occupancy group (in the list or on the plans) but rather a part of the occupancy in which it is located. (I placed accessory in quotes in this paragraph to indicate that is the word used by the IBC, but it is not intended to be the same type of accessory occupancy described per Section 508.2.)