I am trying to create nested group layers using Python. I am able to create group layers and add them to a webmap on Enterprise Portal 11.2. I wrote the code several different ways and haven't been able to get nested group layers to work. The code below works for group layer, but when I add the line that would add the nested layer it doesn't work. I get an this error: AttributeError: 'GroupLayer' object has no attribute 'properties'.
This is the simplest version of the code. Any help is appreciated.
